using System; using System.Collections.Generic; using System.IO; using YIUIFramework; namespace ET.Client { [Event(SceneType.StateSync)] public class EntryEvent3_InitClient : AEvent { protected override async ETTask Run(Scene root, EntryEvent3 args) { root.AddComponent(); root.AddComponent(); root.AddComponent(); root.AddComponent(); var result = await root.AddComponent().Initialize(); if (!result) { Log.Error("初始化UI失败"); return; } await EventSystem.Instance.PublishAsync(root, new AppStartInitFinish()); } } }