So i know destroy(gameobject) will destroy the gameobject.
But my collider is a child of the main controller gameobject...and i want to destroy that part (so child + parent) gameobjects.
So how can i destroy the parent to a gameobject?
asked Jun 27 '12 at 09:15 AM
You can get the parent of a transform by using
Therefore you need to call
Finally, if you only need the parent and not the child component destroyed: