Unidade Exclua todas as crianças
foreach (Transform child in transform) {
Destroy(child.gameObject);
}
CatgirlSimp
foreach (Transform child in transform) {
Destroy(child.gameObject);
}
while (transform.childCount > 0) {
DestroyImmediate(transform.GetChild(0).gameObject);
}