update samples

pull/62/head
hevinci 2022-12-17 22:38:26 +08:00
parent 2ace30acd8
commit 08ad68d4a2
3 changed files with 3 additions and 2 deletions

View File

@ -29,6 +29,7 @@ public class Boot : MonoBehaviour
// 初始化资源系统 // 初始化资源系统
YooAssets.Initialize(); YooAssets.Initialize();
YooAssets.SetOperationSystemMaxTimeSlice(30);
// 创建补丁管理器 // 创建补丁管理器
UniModule.CreateModule<PatchManager>(); UniModule.CreateModule<PatchManager>();

View File

@ -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)

View File

@ -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)