Phaser API Documentation

  Version: 
switch(key)

Description:

Makes this Scene sleep then starts the Scene given.

This will happen at the next Scene Manager update, not immediately.

Parameters:

name type description
key string

The Scene to start.

Returns:
Description:

This ScenePlugin object.

Since: 3.0.0
Source: src/scene/ScenePlugin.js (Line 588)