Function bevy::prelude::apply_state_transition
pub fn apply_state_transition<S>(world: &mut World)where
S: States,
Expand description
If a new state is queued in NextState<S>
, this system:
- Takes the new state value from
NextState<S>
and updatesState<S>
. - Runs the [
OnExit(exited_state)
] schedule. - Runs the [
OnEnter(entered_state)
] schedule.