Exemplo n.º 1
0
 private void OnTriggerExit(Collider other)
 {
     if (other.transform.tag == "Player")
     {
         AgentController agen = other.transform.GetComponent <AgentController>();
         if (agen != null)
         {
             if (agen.Team == Team)
             {
                 agen.DrainPower();
                 ListPlayerInside.Remove(other.gameObject);
             }
         }
     }
 }