EntryLoadCfg_Server.cs 314 B

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