public void GoBack() { if (_precedentStates.Count > 0) { CurrentState = (State)_precedentStates.Dequeue(); _isBack = true; } }
public void GoBack() { if (_precedentStates.Count > 0) { _isBack = true; CurrentState = (State)_precedentStates.Pop(); Debug.Print("Depile " + CurrentState); } }
public void Start() { CurrentState = _startState; }
public Context(State startState, ErrorState errorState) { _startState = startState; _errorState = errorState; _precedentStates = new Queue(); }