完成打包测试,准备更新到最新的Unity
This commit is contained in:
parent
8f824e0671
commit
80d5bf3e69
@ -123,7 +123,7 @@ GameObject:
|
|||||||
- component: {fileID: 1695397707}
|
- component: {fileID: 1695397707}
|
||||||
- component: {fileID: 1695397706}
|
- component: {fileID: 1695397706}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: GameObject
|
m_Name: GameInit
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
|
@ -42,8 +42,10 @@ namespace AssetUpdate
|
|||||||
// 当前资源清单不存在或者过时
|
// 当前资源清单不存在或者过时
|
||||||
if (mainInfo == null)
|
if (mainInfo == null)
|
||||||
{
|
{
|
||||||
|
var oldUri = uri;
|
||||||
uri = uri.Open(serverVersion.ToString()).Open(fileName);
|
uri = uri.Open(serverVersion.ToString()).Open(fileName);
|
||||||
var path = AssetConst.persistentDataPath.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 = new AssetUpdateDownloader(uri, path) {onComplete = OnComplete};
|
||||||
_downloader.Start();
|
_downloader.Start();
|
||||||
}
|
}
|
||||||
|
@ -225,7 +225,8 @@ public class AssetUpdateManager : MonoBehaviour
|
|||||||
error = AssetUpdateError.AssetJsonError;
|
error = AssetUpdateError.AssetJsonError;
|
||||||
if (httpAction != null)
|
if (httpAction != null)
|
||||||
{
|
{
|
||||||
var jsonAssetInfo = HandleHttpGetAction(httpAction);
|
JsonAssetInfo jsonAssetInfo = HandleHttpGetAction(httpAction);
|
||||||
|
Debug.Log("更新资源信息: " + jsonAssetInfo);
|
||||||
if (jsonAssetInfo == null)
|
if (jsonAssetInfo == null)
|
||||||
Debug.LogError("Failed to convert jsonData to JsonAssetInfo!");
|
Debug.LogError("Failed to convert jsonData to JsonAssetInfo!");
|
||||||
else
|
else
|
||||||
|
@ -37,6 +37,11 @@ namespace AssetUpdate
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
return string.Format("apkVersion: {0}, apkUri: {1}, assetVersion: {2}, assetUri: {3}", apkVersion, apkUri, assetVersion, assetUri);
|
||||||
|
}
|
||||||
|
|
||||||
private JsonAssetInfo()
|
private JsonAssetInfo()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user