/// <summary> /// Reset current Game State /// </summary> public static void ResetState() { FlxState state = (FlxState)Activator.CreateInstance(Game.CurrentState.GetType()); SwitchState(state); }
/// <summary> /// Chamge current Game State /// </summary> /// <param name="nextState">Next state to be changed</param> public static void SwitchState(FlxState nextState) { Game.RequestedState = nextState; }