current : string The current active State object. Source code:
new StateManager(game, pendingState) The State Manager is responsible for loading, setting up and switching
add(key, state, autoStart) Adds a new State into the StateManager. You must give each State a unique key
onCreateCallback : Function This is called when the state preload has finished and creation begins.
destroy() Removes all StateManager callback references to the State object, nulls the game reference and clears the States object.
preUpdate() preUpdate is called right at the start of the game loop. It is responsible for changing to a new state that was requested
onPauseUpdateCallback : Function This is called every frame while the game is paused.
onPreloadCallback : Function This is called when the state starts to load assets. Source
getCurrentState() → {Phaser.State}
restart(clearWorld, clearCache, parameter) Restarts the current State. State
Page 2 of 3