Description

Pauses if the game is not paused, and vice versa. View pause method

Returns

Scene

Example

In "ready" method of the scene :

    console.log(this.pause()); // return false
    this.togglePause(); // return this Scene Class
    console.log(this.pause()); // return true

Discussion