Update Basic Sample
parent
cc04efe76b
commit
1f647163f2
|
@ -25,7 +25,7 @@ public class FsmUpdateManifest : IFsmNode
|
||||||
|
|
||||||
// 更新补丁清单
|
// 更新补丁清单
|
||||||
var package = YooAssets.GetAssetsPackage("DefaultPackage");
|
var package = YooAssets.GetAssetsPackage("DefaultPackage");
|
||||||
var operation = package.UpdateManifestAsync(PatchUpdater.PackageCRC, 30);
|
var operation = package.UpdateManifestAsync(PatchUpdater.PackageVersion, 30);
|
||||||
yield return operation;
|
yield return operation;
|
||||||
|
|
||||||
if(operation.Status == EOperationStatus.Succeed)
|
if(operation.Status == EOperationStatus.Succeed)
|
||||||
|
|
|
@ -30,8 +30,8 @@ internal class FsmUpdateStaticVersion : IFsmNode
|
||||||
|
|
||||||
if (operation.Status == EOperationStatus.Succeed)
|
if (operation.Status == EOperationStatus.Succeed)
|
||||||
{
|
{
|
||||||
Debug.Log($"Found static version : {operation.PackageCRC}");
|
Debug.Log($"Found static version : {operation.PackageVersion}");
|
||||||
PatchUpdater.PackageCRC = operation.PackageCRC;
|
PatchUpdater.PackageVersion = operation.PackageVersion;
|
||||||
FsmManager.Transition(nameof(FsmUpdateManifest));
|
FsmManager.Transition(nameof(FsmUpdateManifest));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -14,9 +14,9 @@ public static class PatchUpdater
|
||||||
public static PatchDownloaderOperation Downloader { set; get; }
|
public static PatchDownloaderOperation Downloader { set; get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 资源版本
|
/// 包裹的版本信息
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string PackageCRC { set; get; }
|
public static string PackageVersion { set; get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 开启初始化流程
|
/// 开启初始化流程
|
||||||
|
|
Loading…
Reference in New Issue