StateManager#checkState()

checkState(key) → {boolean}

Checks if a given phaser state is valid. A State is considered valid if it has at least one of the core functions: preload, create, update or render.

Parameters
Name Type Description
key string

The key of the state you want to check.

Returns
boolean -

true if the State has the required functions, otherwise false.

Source code: core/StateManager.js (Line 423)
doc_phaser
2017-02-14 11:13:03
Comments
Leave a Comment

Please login to continue.