EntryEvent3_InitClient.cs 527 B

123456789101112131415161718
  1. using ET.EventType;
  2. namespace ET.Client
  3. {
  4. [Event]
  5. public class EntryEvent3_InitClient : BEvent<ET.EventType.EntryEvent3>
  6. {
  7. protected override async ETTask OnEvent(EntryEvent3 a)
  8. {
  9. Game.AddSingleton<GlobalViewMgr>();
  10. Game.AddSingleton<EffectMgr>();
  11. Game.AddSingleton<SoundManager>();
  12. Scene clientScene = await SceneFactory.CreateClientScene( 1, "Game" );
  13. await EventSystem.Instance.PublishWait<AppStartInitFinish>();
  14. }
  15. }
  16. }