update samples

pull/102/head
hevinci 2023-04-22 17:23:51 +08:00
parent 9a729f921e
commit c2e2a33af1
1 changed files with 2 additions and 2 deletions

View File

@ -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<FsmCreateDownloader>();
}
else