i have a game object inside the game object i have a collider. When the collider is hit only the collider game object will get destroyed but the parent wont get destroyed.How can i destroy the parent game object when there is a collision occurring on child object
Destroy(Transform.parent);