- using ET.EventType;
- namespace ET
- {
- [Event(SceneType.Process)]
- public class EntryLoadCfg_Server : AEvent<ET.EventType.EntryLoadCfg>
- {
- protected override async ETTask Run(Scene scene, EntryLoadCfg a)
- {
- #if UNITY_EDITOR
- return;
- #endif
- await Game.AddSingleton<ConfigComponent>().LoadAsync();
- }
- }
- }
|