private void OnTriggerEnter2D(Collider2D other) { OnCollision otherCollision = other.GetComponent <OnCollision>(); if (OnCollision.DifferentAlliance(collision, otherCollision)) { otherCollision.SendDamage(hp); } }
private void OnTriggerEnter2D(Collider2D other) { OnCollision otherCollision = other.GetComponent <OnCollision>(); if (OnCollision.DifferentAlliance(collision, otherCollision)) { otherCollision.SendDamage(hp); } }