mirror of https://github.com/tuyoogame/YooAsset
update samples
parent
9a729f921e
commit
c2e2a33af1
|
@ -32,13 +32,13 @@ public class FsmUpdateManifest : IStateNode
|
||||||
{
|
{
|
||||||
yield return new WaitForSecondsRealtime(0.5f);
|
yield return new WaitForSecondsRealtime(0.5f);
|
||||||
|
|
||||||
|
bool savePackageVersion = true;
|
||||||
var package = YooAssets.GetPackage("DefaultPackage");
|
var package = YooAssets.GetPackage("DefaultPackage");
|
||||||
var operation = package.UpdatePackageManifestAsync(PatchManager.Instance.PackageVersion);
|
var operation = package.UpdatePackageManifestAsync(PatchManager.Instance.PackageVersion, savePackageVersion);
|
||||||
yield return operation;
|
yield return operation;
|
||||||
|
|
||||||
if(operation.Status == EOperationStatus.Succeed)
|
if(operation.Status == EOperationStatus.Succeed)
|
||||||
{
|
{
|
||||||
operation.SavePackageVersion();
|
|
||||||
_machine.ChangeState<FsmCreateDownloader>();
|
_machine.ChangeState<FsmCreateDownloader>();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue