Esempio n. 1
0
        /// <summary>
        /// Reset current Game State
        /// </summary>
        public static void ResetState()
        {
            FlxState state = (FlxState)Activator.CreateInstance(Game.CurrentState.GetType());

            SwitchState(state);
        }
Esempio n. 2
0
 /// <summary>
 /// Chamge current Game State
 /// </summary>
 /// <param name="nextState">Next state to be changed</param>
 public static void SwitchState(FlxState nextState)
 {
     Game.RequestedState = nextState;
 }