generated from tipragot/rust
Change init of state
This commit is contained in:
parent
9a9e68bf2c
commit
e9d7052746
|
@ -7,7 +7,7 @@ use border_wars::GameState;
|
|||
fn main() {
|
||||
App::new()
|
||||
.add_plugins(DefaultPlugins)
|
||||
.init_resource::<State<GameState>>()
|
||||
.add_state::<GameState>()
|
||||
.add_plugins(MenuPlugin)
|
||||
.run();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue