Einheit entfernen Eltern
transform.parent = null;
Greentext
transform.parent = null;
Destroy(transform.parent.gameObject);