File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
crates/bevy_ecs/src/schedule Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,15 +68,15 @@ pub struct OnUpdate<S: States>(pub S);
68
68
/// [`apply_state_transition::<S>`] system.
69
69
///
70
70
/// The starting state is defined via the [`Default`] implementation for `S`.
71
- #[ derive( Resource , Default ) ]
71
+ #[ derive( Resource , Default , Debug ) ]
72
72
pub struct State < S : States > ( pub S ) ;
73
73
74
74
/// The next state of [`State<S>`].
75
75
///
76
76
/// To queue a transition, just set the contained value to `Some(next_state)`.
77
77
/// Note that these transitions can be overriden by other systems:
78
78
/// only the actual value of this resource at the time of [`apply_state_transition`] matters.
79
- #[ derive( Resource , Default ) ]
79
+ #[ derive( Resource , Default , Debug ) ]
80
80
pub struct NextState < S : States > ( pub Option < S > ) ;
81
81
82
82
impl < S : States > NextState < S > {
You can’t perform that action at this time.
0 commit comments