new StateManager(game, pendingState)
The State Manager is responsible for loading, setting up and switching game states.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
game | Phaser.Game | A reference to the currently running game. | ||
pendingState | Phaser.State | Object | <optional> | null | A State object to seed the manager with. |
- Source code: core/StateManager.js (Line 17)
Please login to continue.