void OnParticleCollision(GameObject other) { int numCollisionEvents = part.GetCollisionEvents(other, collisionEvents); if (other.GetComponent <DestroyableObject>()) { DestroyableObject obj = other.GetComponent <DestroyableObject>(); obj.PartPlay(collisionEvents[0].intersection); obj.hp -= damage; if (obj.rigidbodyForces) { obj.gameObject.GetComponent <Rigidbody2D>().AddForce((-collisionEvents[0].intersection + other.transform.position).normalized * 60); } } }