namespace ET { public class AppStart_Init: AEvent { public override async ETTask Run(EventType.AppStart args) { Game.Scene.AddComponent(); // 下载ab包 //await BundleHelper.DownloadBundle("1111"); // 加载配置 Game.Scene.AddComponent(); ResourcesComponent.Instance.LoadBundle("config.unity3d"); Game.Scene.AddComponent(); ResourcesComponent.Instance.UnloadBundle("config.unity3d"); Game.Scene.AddComponent(); Game.Scene.AddComponent(); Game.Scene.AddComponent(); Scene zoneScene = await SceneFactory.CreateZoneScene(1, 0, "Game"); await Game.EventSystem.Publish(new EventType.AppStartInitFinish() { ZoneScene = zoneScene }); } } }