using ET.EventType; namespace ET { [Event(SceneType.Process)] public class EntryLoadCfg_Server : BEvent<ET.EventType.EntryLoadCfg> { protected override async ETTask OnEvent(EntryLoadCfg a) { await Game.AddSingleton<ConfigComponent>().LoadAsync(); } } }