Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Sep 8, 2023
1 parent ce8194b commit 4f6b6a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/typing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl Plugin for TypingPlugin {
0.5,
TimerMode::Repeating,
)))
.insert_resource(TypingState::default())
.init_resource::<TypingState>()
.init_resource::<TypingTargets>();

app.add_event::<AsciiModeEvent>()
Expand Down
3 changes: 1 addition & 2 deletions src/wave.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Waves>().init_resource::<WaveState>();

app.add_systems(Update, spawn_enemies.run_if(in_state(TaipoState::Playing)));
}
Expand Down

0 comments on commit 4f6b6a6

Please sign in to comment.