예제 #1
0
        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);
        }
예제 #2
0
 public TouchStateMachine(TouchEventManager eventManager)
 {
     this.state = new NullState(this, eventManager);
 }