Exemplo n.º 1
0
 public static bool ContainsCommandableTypes(State.Type source)
 {
     foreach (State.Type commandableType in State._commandableTypes)
     {
         if (source == commandableType)
         {
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 2
0
        public void changeState(State.Type type)
        {
            // Unload current state's content
            currentState.unload();

            // Assign new current state
            currentState = states[type];

            // Load next state's content
            currentState.load();
        }