internal void ChangeState(TouchState newState, TouchEvent te) { Console.WriteLine("{0} to {1}", state, newState); if (this.state != null) this.state.Exit(te); this.state = newState; this.state.Enter(te); }
public TouchStateMachine(TouchEventManager eventManager) { this.state = new NullState(this, eventManager); }