diff --git a/crates/bevy_state/src/app.rs b/crates/bevy_state/src/app.rs index fa9c27fba9d2c..647dfa5134b43 100644 --- a/crates/bevy_state/src/app.rs +++ b/crates/bevy_state/src/app.rs @@ -18,27 +18,29 @@ pub trait AppExtStates { /// /// This method is idempotent: it has no effect when called again using the same generic type. /// - /// Adds [`State`] and [`NextState`] resources, and enables use of the [`OnEnter`], [`OnTransition`] and [`OnExit`] schedules. - /// These schedules are triggered before [`Update`](crate::Update) and at startup. + /// Adds [`State`] and [`NextState`] resources, and enables use of the [`OnEnter`](crate::state::OnEnter), + /// [`OnTransition`](crate::state::OnTransition) and [`OnExit`](crate::state::OnExit) schedules. + /// These schedules are triggered before [`Update`](bevy_app::main_schedule::Update) and at startup. /// /// If you would like to control how other systems run based on the current state, you can - /// emulate this behavior using the [`in_state`] [`Condition`]. + /// emulate this behavior using the [`in_state`](crate::condition::in_state) [`Condition`](bevy_ecs::prelude::Condition). /// /// Note that you can also apply state transitions at other points in the schedule - /// by triggering the [`StateTransition`](`bevy_ecs::schedule::StateTransition`) schedule manually. + /// by triggering the [`StateTransition`](struct@StateTransition) schedule manually. fn init_state(&mut self) -> &mut Self; /// Inserts a specific [`State`] to the current [`App`] and overrides any [`State`] previously /// added of the same type. /// - /// Adds [`State`] and [`NextState`] resources, and enables use of the [`OnEnter`], [`OnTransition`] and [`OnExit`] schedules. - /// These schedules are triggered before [`Update`](crate::Update) and at startup. + /// Adds [`State`] and [`NextState`] resources, and enables use of the [`OnEnter`](crate::state::OnEnter), + /// [`OnTransition`](crate::state::OnTransition) and [`OnExit`](crate::state::OnExit) schedules. + /// These schedules are triggered before [`Update`](bevy_app::main_schedule::Update) and at startup. /// /// If you would like to control how other systems run based on the current state, you can - /// emulate this behavior using the [`in_state`] [`Condition`]. + /// emulate this behavior using the [`in_state`](crate::condition::in_state) [`Condition`](bevy_ecs::prelude::Condition). /// /// Note that you can also apply state transitions at other points in the schedule - /// by triggering the [`StateTransition`](`bevy_ecs::schedule::StateTransition`) schedule manually. + /// by triggering the [`StateTransition`](struct@StateTransition) schedule manually. fn insert_state(&mut self, state: S) -> &mut Self; /// Sets up a type implementing [`ComputedStates`].