namespace ET.Client { [Event(SceneType.Process)] public class EntryEvent2_InitClient : AEvent { protected override async ETTask Run(Scene scene, ET.EventType.EntryEvent2 args) { //加载战斗相关资源 Game.AddSingleton(); await BattleResourceMgr.Instance.InitAsync(); Game.AddSingleton(); await BattleMgr.Instance.InitAsync(); Game.AddSingleton(); await BattleUnitFactory.Instance.InitAsync(); } } }