From c2e2a33af10d65aaca6cc690ff40ed96acbd0757 Mon Sep 17 00:00:00 2001 From: hevinci Date: Sat, 22 Apr 2023 17:23:51 +0800 Subject: [PATCH] update samples --- .../Runtime/PatchLogic/FsmNode/FsmUpdateManifest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmUpdateManifest.cs b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmUpdateManifest.cs index 5e6d7d4..1797f83 100644 --- a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmUpdateManifest.cs +++ b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmUpdateManifest.cs @@ -32,13 +32,13 @@ public class FsmUpdateManifest : IStateNode { yield return new WaitForSecondsRealtime(0.5f); + bool savePackageVersion = true; var package = YooAssets.GetPackage("DefaultPackage"); - var operation = package.UpdatePackageManifestAsync(PatchManager.Instance.PackageVersion); + var operation = package.UpdatePackageManifestAsync(PatchManager.Instance.PackageVersion, savePackageVersion); yield return operation; if(operation.Status == EOperationStatus.Succeed) { - operation.SavePackageVersion(); _machine.ChangeState(); } else