From 4f6b6a6c13afe6245dfaa0e6a1c94ba307666f32 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Fri, 8 Sep 2023 14:08:15 -0700 Subject: [PATCH] Cleanup --- src/typing.rs | 2 +- src/wave.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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))); }