STATE_PAUSE

const val STATE_PAUSE: Int = 2

Identify that the game has been paused.

Instructions of this constant

Before switch the game state to this, please make sure you have initialized or reinitialized the stage and player instance, and you should add a pause menu into UIObjects at the mean time.

They are located in PlayerManager.curStage, ObjectPool.player and ObjectPool.UIObjects.

Also, some UIObject which are added to UIObjects and can action during playing will be rendered and calculated.