GlobalStateManager.js
GlobalStateManager
Kind: global class
new GlobalStateManager()
A class to manage all global states.
GlobalStateManager.setPause(pause) ⇒ void
Pauses/Unpauses the game.
Kind: static method of GlobalStateManager
| Param | Type | Description |
|---|---|---|
| pause | boolean | Pause the game |
GlobalStateManager.setVolume(volume) ⇒ void
Change the volume of the audio.
Kind: static method of GlobalStateManager
| Param | Type | Default | Description |
|---|---|---|---|
| volume | number | 1 | The volume of the audio. Default 1 |