public void TransistionTo(State2 state) { Console.WriteLine($"Context: Transition to {state.GetType().Name}"); this._state = state; this._state.SetContext(this); }
public Context2(State2 state) { this.TransistionTo(state); }