fix: Fix incorrect iteration when destroying game objects

This commit is contained in:
2025-02-17 17:16:27 +08:00
parent 35b77b044c
commit a0ded872b3

View File

@@ -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) {