This commit is contained in:
陈思海 2026-03-23 20:50:25 +08:00
parent 154c588a33
commit 5ac42261ba
4 changed files with 5 additions and 6 deletions

View File

@ -17,7 +17,7 @@ namespace Unity.Startup.Procedure
public static void Start() public static void Start()
{ {
eventRuntimeHandle = EventPublisher.Subscribe<AssetDownloadProgressUpdateEventArgs>(SetProgressUpdate); eventRuntimeHandle = EventBus.Subscribe<AssetDownloadProgressUpdateEventArgs>(SetProgressUpdate);
GameApp.UI.ShowUI<UIGameLaunchWindow>(); GameApp.UI.ShowUI<UIGameLaunchWindow>();
} }

View File

@ -71,7 +71,7 @@ namespace Unity.Startup.Procedure
private void OnDownloadProgressCallback(DownloadUpdateData data) private void OnDownloadProgressCallback(DownloadUpdateData data)
{ {
EventPublisher.Publish(AssetDownloadProgressUpdateEventArgs.Create(data.PackageName, data.TotalDownloadCount, data.CurrentDownloadCount, data.TotalDownloadBytes, data.CurrentDownloadBytes)); EventBus.Publish(AssetDownloadProgressUpdateEventArgs.Create(data.PackageName, data.TotalDownloadCount, data.CurrentDownloadCount, data.TotalDownloadBytes, data.CurrentDownloadBytes));
} }
} }
} }

View File

@ -32,10 +32,9 @@ namespace Unity.Startup.Procedure
#if UNITY_EDITOR #if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false; UnityEditor.EditorApplication.isPlaying = false;
#else #else
Application.OpenURL(StartupSetting.AppDownloadUrl); Utility.Platform.OpenURL(StartupSetting.AppDownloadUrl);
Application.Quit(); Utility.Platform.Quit();
#endif #endif
return; return;
} }

@ -1 +1 @@
Subproject commit b01ada2f40937d37c9ad952ea46250a9253272fc Subproject commit d5518c46b1d84f3103ad49d35eff6889e93e5b4a