Used to switch scenes

Static variables

staticcurrentScene:RgScene

The current loaded scene. It is recommended to not change this manually unless you know what you're doing.

Static methods

staticdynamiccallError(msg:String, step:ErrorStep, scene:RgScene):Void

Decides what to do in the event of an error.

Can be rebound for your own logic.

Parameters:

msg

The error message

step

The error step

scene

The scene the error happened in. In the event of a SceneSwitch error, the scene the error happened in is used.

staticswitchScene(scene:RgScene):Void

Used to switch scenes. Automatically calls unload on the last scene, and init on the next.

Parameters:

scene

the scene to switch to.