end separated
This commit is contained in:
parent
440ec86cc7
commit
3da156f2eb
|
@ -1,8 +1,9 @@
|
||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
use core::Player;
|
use crate::Player;
|
||||||
use core::GameState;
|
use crate::GameState;
|
||||||
|
use crate::GameOver;
|
||||||
|
|
||||||
fn setup(
|
pub fn setup(
|
||||||
mut commands: Commands,
|
mut commands: Commands,
|
||||||
_asset_server: Res<AssetServer>,
|
_asset_server: Res<AssetServer>,
|
||||||
mut player_query: Query<&mut Player>
|
mut player_query: Query<&mut Player>
|
||||||
|
@ -59,7 +60,7 @@ fn setup(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn buttons(
|
pub fn buttons(
|
||||||
keys: Res<ButtonInput<KeyCode>>,
|
keys: Res<ButtonInput<KeyCode>>,
|
||||||
mut game_state: ResMut<NextState<GameState>>
|
mut game_state: ResMut<NextState<GameState>>
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue