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