onResizeCallback : Function This is called if ScaleManager.scalemode is RESIZE and a resize event occurs. It's passed the new width
onPauseUpdateCallback : Function This is called every frame while the game is paused.
add(key, state, autoStart) Adds a new State into the StateManager. You must give each State a unique key
preUpdate() preUpdate is called right at the start of the game loop. It is responsible for changing to a new state that was requested
destroy() Removes all StateManager callback references to the State object, nulls the game reference and clears the States object.
new StateManager(game, pendingState) The State Manager is responsible for loading, setting up and switching
onCreateCallback : Function This is called when the state preload has finished and creation begins.
onPausedCallback : Function This is called when the game is paused. Source
onPreloadCallback : Function This is called when the state starts to load assets. Source
getCurrentState() → {Phaser.State}
Page 2 of 3