|
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?
(comments are locked)
|
|
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:
(comments are locked)
|
