diff --git a/src/typing.rs b/src/typing.rs index d0e00ae..4bea6bd 100644 --- a/src/typing.rs +++ b/src/typing.rs @@ -18,7 +18,7 @@ impl Plugin for TypingPlugin { 0.5, TimerMode::Repeating, ))) - .insert_resource(TypingState::default()) + .init_resource::() .init_resource::(); app.add_event::() diff --git a/src/wave.rs b/src/wave.rs index b502f9b..71c6c90 100644 --- a/src/wave.rs +++ b/src/wave.rs @@ -15,8 +15,7 @@ pub struct WavePlugin; impl Plugin for WavePlugin { fn build(&self, app: &mut App) { - app.insert_resource(Waves::default()) - .insert_resource(WaveState::default()); + app.init_resource::().init_resource::(); app.add_systems(Update, spawn_enemies.run_if(in_state(TaipoState::Playing))); }