protected FSMEnum nextState; //Set next state to change state. public FSMState(FSMEnum stateType, FAIController controller) { this.controller = controller; this.stateType = stateType; nextState = stateType; }
public void Enter() { nextState = stateType; }
//Checks if the state exists in this machine. public bool TransitionState(FSMEnum stateType){ return (states[stateType] != null); }