public void OnChildCollisionEnter(Collision collision) { if (collision.gameObject.tag == "Fuel" && gameObject.tag == "Drone" && needsRepair) { Repair(); Planetoid planetoid = collision.gameObject.GetComponentInParent <Planetoid>(); planetoid.Die(); } }