Bevy state stack
This crate allows you to use a state stack that is not confined to a single stage.
Bevy version
| bevy version | bevy_state_stack version |
|---|---|
| 0.8 | 0.1, 0.2 |
Usage
You're better off importing the entire library.
use *;
Add the state enum into the app.
app.add_state_stack
Add different systems to the app.
app.add_system_on_enter
.add_system_on_exit
.add_system_on_enter
.add_system_on_update
.add_system_on_update
.add_system_set_on_update
You can set, push, or pop the state on top of the stack
by inserting the Stack resource.