Phaser API Documentation

  Version: 
switch(from, to)

Description:

Sleeps one one Scene and starts the other.

Parameters:

name type description
from string | Phaser.Scene

The Scene to sleep.

to string | Phaser.Scene

The Scene to start.

Returns:
Description:

This Scene Manager instance.

Since: 3.0.0