StateManager#StateManager

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)
doc_phaser
2017-02-14 11:13:11
Comments
Leave a Comment

Please login to continue.