public void ChangeState(GameState state) { if (_states.Count != 0) { PopState(); } PushState(state); }
public void PushState(GameState state) { _states.Add(state); }