Пример #1
0
        public void ReplaceState(State newState)
        {
            if (states.Count > 0)
            {
                states.Pop();
            }

            states.Push(newState);
        }
Пример #2
0
 public void EnterState(State newState)
 {
     states.Push(newState);
 }