Beispiel #1
0
 public void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Ennemy")
     {
         if (other.GetComponent <IAMove>() != null)
         {
             other.GetComponent <IAMove>().removeFromSeparation += separation.RemoveTarget;
             separation.AddTarget(other.transform);
         }
     }
     else if (other.tag == "Player")
     {
         separation.AddTarget(other.transform);
     }
 }