Event used for onStateSwitch

Constructor

new()

Variables

nextState:FlxState

State being switched to

Inherited Variables

Defined by ScriptEvent

@:value(false)cancelled:Bool = false

Whether or not the current event is canceled.

Inherited Methods

Defined by ScriptEvent

cancel():Void

Cancels current function (if cancellable).

cancellable():Bool

Whether or not an event can be canceled or not.