Closed Nerucius closed 7 years ago
SelfDestroy code should be something like:
protected virtual void SelfDestroy()
{
if (transform.parent == null)
Destroy(gameObject);
else
Destroy(transform.parent.gameObject);
}
Calling destroy on parent object also removes all of its children.
Script change implemented at 1038649