feat(battle-engine): close the AI-simulation subsystem (verbatim)
Copied the 89 uncopied AI*SimulationUtility/extension files defining the AIVirtualCard/AIVirtualField extension methods; the compile loop then auto-closed the revealed type deps (~3049 files total, drift-clean). 10.0k -> 62 errors.
This commit is contained in:
14
SVSim.BattleEngine/Engine/Wizard/UIDestroyUtility.cs
Normal file
14
SVSim.BattleEngine/Engine/Wizard/UIDestroyUtility.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class UIDestroyUtility
|
||||
{
|
||||
public static void RemoveChildren(Transform trans)
|
||||
{
|
||||
for (int num = trans.childCount - 1; num >= 0; num--)
|
||||
{
|
||||
Object.DestroyImmediate(trans.GetChild(num).gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user