using ET.EventType; namespace ET.Client { [Event] public class EntryEvent3_InitClient : BEvent<ET.EventType.EntryEvent3> { protected override async ETTask OnEvent(EntryEvent3 a) { Game.AddSingleton<GlobalViewMgr>(); Game.AddSingleton<EffectMgr>(); Game.AddSingleton<SoundManager>(); Scene clientScene = await SceneFactory.CreateClientScene( 1, "Game" ); await EventSystem.Instance.PublishWait<AppStartInitFinish>(); } } }