コード例 #1
0
ファイル: FSMState.cs プロジェクト: ThaH3lper/AITestGame
        protected FSMEnum nextState;            //Set next state to change state.

        public FSMState(FSMEnum stateType, FAIController controller)
        {
            this.controller = controller;
            this.stateType = stateType;
            nextState = stateType;
        }
コード例 #2
0
ファイル: FSMState.cs プロジェクト: ThaH3lper/AITestGame
 public void Enter()
 {
     nextState = stateType;
 }
コード例 #3
0
ファイル: FSMMachine.cs プロジェクト: ThaH3lper/AITestGame
 //Checks if the state exists in this machine.
 public bool TransitionState(FSMEnum stateType){
     return (states[stateType] != null);
 }