EntryEvent2_InitClient.cs 483 B

123456789101112131415
  1. namespace ET.Client
  2. {
  3. [Event(SceneType.Process)]
  4. public class EntryEvent2_InitClient : AEvent<ET.EventType.EntryEvent2>
  5. {
  6. protected override async ETTask Run(Scene scene, ET.EventType.EntryEvent2 args)
  7. {
  8. //加载战斗相关资源
  9. Game.AddSingleton<BattleResourceMgr>();
  10. Game.AddSingleton<BattleMgr>();
  11. Game.AddSingleton<BattleUnitFactory>();
  12. Game.AddSingleton<SkillMgr>();
  13. }
  14. }
  15. }