Ejemplo n.º 1
0
        public void changeState(NpcState <T> _newstate)

        {
            if (current_state != null)
            {
                current_state.EnterState(owner);
            }
            current_state = _newstate;
            current_state.EnterState(owner);
        }
Ejemplo n.º 2
0
 //constructor
 public NpcStateMachine(T _o)
 {
     owner         = _o;
     current_state = null;
 }