From 3da156f2ebd8dafaa288084d349605c7d3d7c30f Mon Sep 17 00:00:00 2001 From: WanderingPenwing Date: Sun, 6 Oct 2024 15:41:41 +0200 Subject: [PATCH] end separated --- src/end_state.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/end_state.rs b/src/end_state.rs index 09b6771..26a2483 100644 --- a/src/end_state.rs +++ b/src/end_state.rs @@ -1,8 +1,9 @@ use bevy::prelude::*; -use core::Player; -use core::GameState; +use crate::Player; +use crate::GameState; +use crate::GameOver; -fn setup( +pub fn setup( mut commands: Commands, _asset_server: Res, mut player_query: Query<&mut Player> @@ -59,7 +60,7 @@ fn setup( } } -fn buttons( +pub fn buttons( keys: Res>, mut game_state: ResMut> ) {