Beispiel #1
0
        public void ReplaceState(State newState)
        {
            if (states.Count > 0)
            {
                states.Pop();
            }

            states.Push(newState);
        }
Beispiel #2
0
 public void EnterState(State newState)
 {
     states.Push(newState);
 }