public static void AddState(Settings.STATES s)
        {
            stateList.Add(Settings.states[s].Clone());

            stateList[stateList.Count - 1].buttons = new List <Button>();
            stateList[stateList.Count - 1].Initialize();
        }
 public static State GetState(Settings.STATES c)
 {
     foreach (State s in stateList)
     {
         if (Settings.states[c].GetType() == s.GetType())
         {
             return(s);
         }
     }
     return(null);
 }
 public static void ChangeState(Settings.STATES s)
 {
     RemoveState();
     AddState(s);
 }