use bevy::prelude::*; #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug, Default, States)] pub enum LevelState { #[default] Begin, InGame, End, } #[derive(Resource)] pub struct Level(pub u32); pub(super) struct LevelPlugin; impl Plugin for LevelPlugin { fn build(&self, app: &mut App) { app.insert_resource(Level(1)); } }