1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use bevy::prelude::*;

pub mod components;
pub mod systems;


use crate::SimulationState;

use self::systems::spawn_death_screen;
pub struct DeathScreenPlugin;

impl Plugin for DeathScreenPlugin {
    fn build(&self, app: &mut App) {
        app.add_systems(OnEnter(SimulationState::Dead), spawn_death_screen);
    }
}