fix: Fix incorrect iteration when destroying game objects
This commit is contained in:
@@ -8,7 +8,6 @@ namespace Cryville.EEW.Unity.UI {
|
||||
|
||||
public void Set(ReportGroup group) {
|
||||
foreach (Transform child in transform) {
|
||||
child.SetParent(null, false);
|
||||
Destroy(child.gameObject);
|
||||
}
|
||||
foreach (var unit in group) {
|
||||
|
Reference in New Issue
Block a user