change schedule

This commit is contained in:
yuni 2024-05-13 21:39:55 +02:00
parent f476f351c9
commit 6b6732bdec

View file

@ -22,7 +22,7 @@ impl Plugin for MenuPlugin {
app.add_systems(Startup, setup.after(hud::setup));
app.add_systems(PreUpdate, show_deathscreen.run_if(on_event::<DeathScreenEvent>()));
app.add_systems(Update, handle_deathscreen_input);
app.add_systems(PostUpdate, update_menu.run_if(on_event::<UpdateMenuEvent>()));
app.add_systems(PreUpdate, update_menu.run_if(on_event::<UpdateMenuEvent>()));
app.add_systems(Update, handle_input.run_if(alive));
app.insert_resource(DeathScreenInputDelayTimer(
Timer::from_seconds(1.0, TimerMode::Once)));