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