Beispiel #1
0
        protected FSMEnum nextState;            //Set next state to change state.

        public FSMState(FSMEnum stateType, FAIController controller)
        {
            this.controller = controller;
            this.stateType = stateType;
            nextState = stateType;
        }
Beispiel #2
0
 public void Enter()
 {
     nextState = stateType;
 }
Beispiel #3
0
 //Checks if the state exists in this machine.
 public bool TransitionState(FSMEnum stateType){
     return (states[stateType] != null);
 }