Used internally to initialise the State class.
Get a state value.
The name of the state.
The value of the state, null if the state was not set.
Set (create or update) a state value.
The name of the state.
The value of the state.
Generated using TypeDoc
The State class is used to store data that can be accessed throughout your game.
For example, you can use it from a game object to update a state value, then access this state value from the game's update method or from another game object.
Think of it as a big container available from anywhere you import it.