EntryEvent3_InitClient.cs 603 B

1234567891011121314151617181920
  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<GameObjectPool>();
  10. Game.AddSingleton<GlobalViewMgr>();
  11. Game.AddSingleton<EffectMgr>();
  12. Game.AddSingleton<SoundManager>();
  13. Game.AddSingleton<UrlImageLoader>();
  14. await SceneFactory.CreateClientScene( 1, "Game" );
  15. await EventSystem.Instance.PublishWait<ShowLoginUIEvent>();
  16. }
  17. }
  18. }