Unity usuwa wszystkie dzieci
foreach (Transform child in transform) {
Destroy(child.gameObject);
}
CatgirlSimp
foreach (Transform child in transform) {
Destroy(child.gameObject);
}
foreach (Transform child in transform) {
child.SetParent(null);
}