Skip to main content

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

ParamTypeDescription
pauseboolean

Pause the game

GlobalStateManager.setVolume(volume) ⇒ void

Change the volume of the audio.

Kind: static method of GlobalStateManager

ParamTypeDefaultDescription
volumenumber1

The volume of the audio. Default 1