Update to Bevy 0.12
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
use bevy::prelude::*;
|
||||
|
||||
// #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug, Default, States)]
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug, Default)]
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug, Default, States)]
|
||||
pub enum LevelState {
|
||||
#[default]
|
||||
Begin,
|
||||
@@ -10,12 +9,12 @@ pub enum LevelState {
|
||||
}
|
||||
|
||||
#[derive(Resource)]
|
||||
struct Level(u32);
|
||||
pub struct Level(pub u32);
|
||||
|
||||
pub(super) struct LevelPlugin;
|
||||
|
||||
impl Plugin for LevelPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
// app.add_state::<LevelState>();
|
||||
app.insert_resource(Level(1));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user