destroy parent from child unity code example Example: how to destroy parent gameobject unity Destroy(transform.parent.gameObject);