/// <summary> /// Call this to switch to a new state /// @use FlxG.switchState(new NewState()); /// </summary> /// <param name="State"></param> public static void switchState(FlxState State) { state.destroy(); state = State; state.create(); }
/// <summary> /// Call this to switch to a new state /// @use FlxG.switchState(new NewState()); /// </summary> /// <param name="State"></param> static public void switchState(FlxState State) { state.destroy(); state = State; state.create(); }