Пример #1
0
        public void ChangeState(GameState state)
        {
            if (_states.Count != 0)
            {
                PopState();
            }

            PushState(state);
        }
Пример #2
0
 public void PushState(GameState state)
 {
     _states.Add(state);
 }