for(int i = 0;i<parentObj.transform.childCount;i++){
GameObject go = parentObj.transform.GetChild(i).gameObject;
Destroy(go);
}
全站熱搜
for(int i = 0;i<parentObj.transform.childCount;i++){
GameObject go = parentObj.transform.GetChild(i).gameObject;
Destroy(go);
}