Function elementalist::resources::cleanup::cleanup_then_exit
source · pub fn cleanup_then_exit(app_exit_events: EventWriter<'_, AppExit>)
Expand description
System to cleanup entities and then exit the app.
This should be setup for [OnEnter(AppState::Cleanup)
]