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

            target = spawner.bola;
        }
 public void Idle(MovementAI _movementAI)
 {
     if (stopState == null)
     {
         stopState = new Stop(movementAI, this, animationsAI);
     }
     if (stateHorizontal != States.Idle)
     {
         SetState01(stopState);
         stateHorizontal = States.Idle;
     }
 }
Beispiel #5
0
 public None(MovementAI _moveAI, BotFSM _stateMachine)
 {
     movementAI   = _moveAI;
     stateMachine = _stateMachine;
 }
Beispiel #6
0
 public Stop(MovementAI _moveAI, BotFSM _stateMachine, AnimationsAI _animationsAI)
 {
     movementAI   = _moveAI;
     stateMachine = _stateMachine;
     animationsAI = _animationsAI;
 }
 void Awake()
 {
     movementAI   = GetComponent <MovementAI>();
     actionsAI    = GetComponent <ActionsAI>();
     animationsAI = GetComponent <AnimationsAI>();
 }