We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding on to #238
Defining enum for the game, with #[default] defining the initial state
#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, States)] enum GameStates { #[default] GameStart, Loading, InGame, ... }
When setting the state on init, use:
App::new() .add_state::<GameStates>()
and the state will be set automatically to default (GameStart)
Rest of the changes in the issue linked are up to date as far as I know.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Adding on to #238
Defining enum for the game, with #[default] defining the initial state
When setting the state on init, use:
and the state will be set automatically to default (GameStart)
Rest of the changes in the issue linked are up to date as far as I know.
The text was updated successfully, but these errors were encountered: