Fixed a typo in an example state.rs (#7666)

# Objective

Found and fixed a typo in an example ecs/state.rs
This commit is contained in:
tomaspecl 2023-02-14 01:16:33 +00:00
parent 0a9c469d19
commit 9dadde06cb

View file

@ -14,7 +14,7 @@ fn main() {
.add_startup_system(setup)
// This system runs when we enter `AppState::Menu`, during `CoreSet::StateTransitions`.
// All systems from the exit schedule of the state we're leaving are run first,
// and then all systems from the enter schedule of the state we're leaving are run second.
// and then all systems from the enter schedule of the state we're entering are run second.
.add_system_to_schedule(OnEnter(AppState::Menu), setup_menu)
// By contrast, on_update systems are stored in the main schedule, during CoreSet::Update,
// and simply check the value of the `State<T>` resource to see if they should run each frame.