generated from tipragot/rust
Add the main menu #31
Binary file not shown.
|
@ -10,9 +10,6 @@ pub struct MenuPlugin;
|
|||
|
||||
impl Plugin for MenuPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_plugins(EguiPlugin)
|
||||
.add_systems(Update, menu_ui.run_if(in_state(GameState::Menu)));
|
||||
println!("{:?}", app.world.resource::<State<GameState>>());
|
||||
app.add_plugins(EguiPlugin).add_systems(
|
||||
Update,
|
||||
menu_ui.run_if(state_exists_and_equals(GameState::Menu)),
|
||||
|
|
Loading…
Reference in a new issue