Пример #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
 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>();
 }