EntryEvent3_InitClient.cs 777 B

12345678910111213141516171819202122
  1. /*// using System;
  2. // using System.Collections.Generic;
  3. // using System.IO;
  4. //
  5. // namespace ET.Client
  6. // {
  7. // [Event(SceneType.StateSync)]
  8. // public class EntryEvent3_InitClient: AEvent<Scene, EntryEvent3>
  9. // {
  10. // protected override async ETTask Run(Scene root, EntryEvent3 args)
  11. // {
  12. // root.AddComponent<GlobalComponent>();
  13. // root.AddComponent<UIGlobalComponent>();
  14. // root.AddComponent<UIComponent>();
  15. // root.AddComponent<ResourcesLoaderComponent>();
  16. // root.AddComponent<PlayerComponent>();
  17. // root.AddComponent<CurrentScenesComponent>();
  18. //
  19. // await EventSystem.Instance.PublishAsync(root, new AppStartInitFinish());
  20. // }
  21. // }
  22. // }*/