完成打包测试,准备更新到最新的Unity

This commit is contained in:
2024-09-24 03:15:21 +08:00
parent 8f824e0671
commit 80d5bf3e69
4 changed files with 10 additions and 2 deletions

View File

@ -42,8 +42,10 @@ namespace AssetUpdate
// 当前资源清单不存在或者过时
if (mainInfo == null)
{
var oldUri = uri;
uri = uri.Open(serverVersion.ToString()).Open(fileName);
var path = AssetConst.persistentDataPath.Open(fileName);
Debug.Log("Download version file from: " + uri + " url: " + oldUri);
_downloader = new AssetUpdateDownloader(uri, path) {onComplete = OnComplete};
_downloader.Start();
}