12345678910111213141516 |
- namespace ET.Client
- {
- [Event(SceneType.Process)]
- public class EntryEvent3_InitClient : AEvent<ET.EventType.EntryEvent3>
- {
- protected override async ETTask Run(Scene scene, ET.EventType.EntryEvent3 args)
- {
-
-
- Root.Instance.Scene.AddComponent<GlobalViewComponent>();
- Scene clientScene = await SceneFactory.CreateClientScene(1, "Game");
- await EventSystem.Instance.PublishAsync(clientScene, new EventType.AppStartInitFinish());
- }
- }
- }
|