pub fn swap_to_update<A: Actionlike>(
query: Query<'_, '_, &mut ActionState<A>>,
action_state: Option<ResMut<'_, ActionState<A>>>,
)
Expand description
We are about to enter the Main
schedule, so we:
- save all the changes applied to
state
into thefixed_update_state
- switch to loading the
update_state