Ejemplo n.º 1
0
 public void OnTriggerStay(Collider other)
 {
     if (myShip)
     {
         if (other.tag == "Damager" && other.transform.root != myShip.transform)
         {
             myShip.Damage(other.GetComponent <Damager>().damage *Time.deltaTime);
         }
     }
 }