EntryEvent1_InitShare.cs 541 B

12345678910111213141516
  1. namespace ET
  2. {
  3. [Event]
  4. public class EntryEvent1_InitShare: BEvent<EventType.EntryEvent1>
  5. {
  6. protected override async ETTask OnEvent(EventType.EntryEvent1 args)
  7. {
  8. Root.Instance.Scene.AddComponent<NetThreadComponent>();
  9. Root.Instance.Scene.AddComponent<OpcodeTypeComponent>();
  10. Root.Instance.Scene.AddComponent<MessageDispatcherComponent>();
  11. Root.Instance.Scene.AddComponent<ClientSceneManagerComponent>();
  12. await ETTask.CompletedTask;
  13. }
  14. }
  15. }