public void ReplaceState(State newState) { if (states.Count > 0) { states.Pop(); } states.Push(newState); }
public void EnterState(State newState) { states.Push(newState); }