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)
Please login to continue.