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:
31
SVSim.BattleEngine/Engine/EffectSetUp.cs
Normal file
31
SVSim.BattleEngine/Engine/EffectSetUp.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System.Collections.Generic;
|
||||
using Cute;
|
||||
using UnityEngine;
|
||||
|
||||
public class EffectSetUp : MonoBehaviour
|
||||
{
|
||||
public bool isBattle;
|
||||
|
||||
public bool isField;
|
||||
|
||||
public bool isFinished;
|
||||
|
||||
private List<string> _loadAssetList = new List<string>();
|
||||
|
||||
private void Start()
|
||||
{
|
||||
if (GameMgr.GetIns() != null)
|
||||
{
|
||||
base.gameObject.SetActive(value: true);
|
||||
_loadAssetList.AddRange(GameMgr.GetIns().GetEffectMgr().SetUIParticleShader(base.gameObject, delegate
|
||||
{
|
||||
isFinished = true;
|
||||
}, isBattle, isField));
|
||||
}
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
Toolbox.ResourcesManager.RemoveAssetGroup(_loadAssetList);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user