コード例 #1
0
 void Awake()
 {
     movementAI        = GetComponent <MovementAI>();
     botFSM            = GetComponent <BotFSM>();
     actionsAI         = GetComponent <ActionsAI>();
     triggerController = GetComponent <AITriggerController>();
 }
コード例 #2
0
 void Awake()
 {
     movementAI = GetComponent <MovementAI>();
     botFSM     = GetComponent <BotFSM>();
     //botFSM.SetBotFSM(movementAI);
     coletaveis = aiSpawner.wayPointsForAI;
 }
コード例 #3
0
        void Awake()
        {
            spawner    = FindObjectOfType <AISpawner>();
            movementAI = GetComponent <MovementAI>();
            botFSM     = GetComponent <BotFSM>();
            actionsAI  = GetComponent <ActionsAI>();

            target = spawner.bola;
        }
コード例 #4
0
 public void Idle(MovementAI _movementAI)
 {
     if (stopState == null)
     {
         stopState = new Stop(movementAI, this, animationsAI);
     }
     if (stateHorizontal != States.Idle)
     {
         SetState01(stopState);
         stateHorizontal = States.Idle;
     }
 }
コード例 #5
0
 public None(MovementAI _moveAI, BotFSM _stateMachine)
 {
     movementAI   = _moveAI;
     stateMachine = _stateMachine;
 }
コード例 #6
0
ファイル: Stop.cs プロジェクト: MatiasCodas/unity-scripts-old
 public Stop(MovementAI _moveAI, BotFSM _stateMachine, AnimationsAI _animationsAI)
 {
     movementAI   = _moveAI;
     stateMachine = _stateMachine;
     animationsAI = _animationsAI;
 }
コード例 #7
0
 void Awake()
 {
     movementAI   = GetComponent <MovementAI>();
     actionsAI    = GetComponent <ActionsAI>();
     animationsAI = GetComponent <AnimationsAI>();
 }