Esempio n. 1
0
 private void Awake()
 {
     myNavMesh       = Instantiate(myNavMesh);
     myNavMesh.Value = GetComponent <NavMeshAgent>();
     animator        = GetComponentInChildren <Animator>();
     myAgent         = Instantiate(myAgent);
     moveSpeed       = Instantiate(moveSpeed);
 }
Esempio n. 2
0
    private void Awake()
    {
        isArmed.Value      = false;
        engaged.Value      = false;
        agentNavMesh       = Instantiate(agentNavMesh);
        agentNavMesh.Value = GetComponent <NavMeshAgent>();
        animator           = GetComponentInChildren <Animator>();
        myAgent            = Instantiate(myAgent);
        moveSpeed          = Instantiate(moveSpeed);
        targetPlayer.Value = myPlayer;
        targetWeapon.Value = myWeapon;

        myAgent.Value = this.gameObject;

        wayPoint.Value = waypoints[0];
    }
Esempio n. 3
0
 public BTStop(VariableNavMeshAgent agent)
 {
     this.agent = agent;
 }
Esempio n. 4
0
 public BTMove(float speed, VariableNavMeshAgent agent, VariableGameObject goal)
 {
     this.speed = speed;
     this.goal  = goal;
     this.agent = agent;
 }