Event used for onStateSwitch
new()
nextState:FlxState
State being switched to
@:value(false)cancelled:Bool = false
Whether or not the current event is canceled.
cancel():Void
Cancels current function (if cancellable).
cancellable():Bool
Whether or not an event can be canceled or not.