public void RemoveState(State state) { _states.Remove(state); }
public void AddState(State state, bool change) { _states.Add(state); if (!change) return; if (CurrentState != null) { CurrentState.Close(); } CurrentState = _states.Last(); CurrentState.Load(); }