update samples
parent
2ace30acd8
commit
08ad68d4a2
|
@ -29,6 +29,7 @@ public class Boot : MonoBehaviour
|
||||||
|
|
||||||
// 初始化资源系统
|
// 初始化资源系统
|
||||||
YooAssets.Initialize();
|
YooAssets.Initialize();
|
||||||
|
YooAssets.SetOperationSystemMaxTimeSlice(30);
|
||||||
|
|
||||||
// 创建补丁管理器
|
// 创建补丁管理器
|
||||||
UniModule.CreateModule<PatchManager>();
|
UniModule.CreateModule<PatchManager>();
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class FsmUpdateManifest : IStateNode
|
||||||
yield return new WaitForSecondsRealtime(0.5f);
|
yield return new WaitForSecondsRealtime(0.5f);
|
||||||
|
|
||||||
var package = YooAssets.GetAssetsPackage("DefaultPackage");
|
var package = YooAssets.GetAssetsPackage("DefaultPackage");
|
||||||
var operation = package.UpdatePackageManifestAsync(PatchManager.Instance.PackageVersion, 30);
|
var operation = package.UpdatePackageManifestAsync(PatchManager.Instance.PackageVersion);
|
||||||
yield return operation;
|
yield return operation;
|
||||||
|
|
||||||
if(operation.Status == EOperationStatus.Succeed)
|
if(operation.Status == EOperationStatus.Succeed)
|
||||||
|
|
|
@ -33,7 +33,7 @@ internal class FsmUpdateVersion : IStateNode
|
||||||
yield return new WaitForSecondsRealtime(0.5f);
|
yield return new WaitForSecondsRealtime(0.5f);
|
||||||
|
|
||||||
var package = YooAssets.GetAssetsPackage("DefaultPackage");
|
var package = YooAssets.GetAssetsPackage("DefaultPackage");
|
||||||
var operation = package.UpdatePackageVersionAsync(30);
|
var operation = package.UpdatePackageVersionAsync();
|
||||||
yield return operation;
|
yield return operation;
|
||||||
|
|
||||||
if (operation.Status == EOperationStatus.Succeed)
|
if (operation.Status == EOperationStatus.Succeed)
|
||||||
|
|
Loading…
Reference in New Issue