Exemple #1
0
 protected void setCible(Humanoid cible)
 {
     if (!cible.isAlive())
     {
         this.navAgent.destination = cible.transform.position;
         return ;
     }
     this.navAgent.destination = cible.GetComponent<NavMeshAgent>().transform.position;
     this.target = cible;
 }