diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/FsmNode/FsmUpdateManifest.cs b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/FsmNode/FsmUpdateManifest.cs index 420800f..e1901a7 100644 --- a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/FsmNode/FsmUpdateManifest.cs +++ b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/FsmNode/FsmUpdateManifest.cs @@ -25,7 +25,7 @@ public class FsmUpdateManifest : IFsmNode // 更新补丁清单 var package = YooAssets.GetAssetsPackage("DefaultPackage"); - var operation = package.UpdateManifestAsync(PatchUpdater.PackageCRC, 30); + var operation = package.UpdateManifestAsync(PatchUpdater.PackageVersion, 30); yield return operation; if(operation.Status == EOperationStatus.Succeed) diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/FsmNode/FsmUpdateStaticVersion.cs b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/FsmNode/FsmUpdateStaticVersion.cs index e7e2ce0..5e58c3c 100644 --- a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/FsmNode/FsmUpdateStaticVersion.cs +++ b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/FsmNode/FsmUpdateStaticVersion.cs @@ -30,8 +30,8 @@ internal class FsmUpdateStaticVersion : IFsmNode if (operation.Status == EOperationStatus.Succeed) { - Debug.Log($"Found static version : {operation.PackageCRC}"); - PatchUpdater.PackageCRC = operation.PackageCRC; + Debug.Log($"Found static version : {operation.PackageVersion}"); + PatchUpdater.PackageVersion = operation.PackageVersion; FsmManager.Transition(nameof(FsmUpdateManifest)); } else diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/PatchUpdater.cs b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/PatchUpdater.cs index 550da6e..5cc905b 100644 --- a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/PatchUpdater.cs +++ b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/PatchUpdater.cs @@ -14,9 +14,9 @@ public static class PatchUpdater public static PatchDownloaderOperation Downloader { set; get; } /// - /// 资源版本 + /// 包裹的版本信息 /// - public static string PackageCRC { set; get; } + public static string PackageVersion { set; get; } /// /// 开启初始化流程