diff --git a/src/game/selection.rs b/src/game/selection.rs index 7d28977e..0dbfe1d5 100644 --- a/src/game/selection.rs +++ b/src/game/selection.rs @@ -17,7 +17,7 @@ pub struct SelectionPlugin; impl Plugin for SelectionPlugin { fn build(&self, app: &mut App) { app.add_system_set( - SystemSet::on_update(GameStates::Playing).with_system(mouse_click_event), + SystemSet::on_update(GameStates::Playing).with_system(mouse_click_handler), ); } } @@ -96,7 +96,7 @@ impl<'w, 's> Selector<'w, 's> { } } -fn mouse_click_event( +fn mouse_click_handler( mut event: EventReader, keys: Res>, playable: Intersector>,