| 12345678910111213141516171819202122 |
- using System;
- using System.Collections.Generic;
- using System.IO;
- namespace ET.Client
- {
- [Event(SceneType.StateSync)]
- public class EntryEvent3_InitClient: AEvent<Scene, EntryEvent3>
- {
- protected override async ETTask Run(Scene root, EntryEvent3 args)
- {
- root.AddComponent<GlobalComponent>();
- root.AddComponent<UIGlobalComponent>();
- root.AddComponent<UIComponent>();
- root.AddComponent<ResourcesLoaderComponent>();
- root.AddComponent<PlayerComponent>();
- root.AddComponent<CurrentScenesComponent>();
-
- await EventSystem.Instance.PublishAsync(root, new AppStartInitFinish());
- }
- }
- }
|