EntryLoadCfg_Server.cs 359 B

12345678910111213141516
  1. using ET.EventType;
  2. namespace ET
  3. {
  4. [Event(SceneType.Process)]
  5. public class EntryLoadCfg_Server : AEvent<ET.EventType.EntryLoadCfg>
  6. {
  7. protected override async ETTask Run(Scene scene, EntryLoadCfg a)
  8. {
  9. #if UNITY_EDITOR
  10. return;
  11. #endif
  12. await Game.AddSingleton<ConfigComponent>().LoadAsync();
  13. }
  14. }
  15. }