From bdc8285255242167b09c0e4dd23a641529bd519b Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 31 Oct 2022 16:46:05 +0800 Subject: [PATCH] Update basic sample --- .../Samples~/Basic Sample/GameScript/Runtime/BootScene.cs | 1 + .../Runtime/PatchUpdater/FsmNode/FsmUpdateStaticVersion.cs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/BootScene.cs b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/BootScene.cs index 8a61b7e..c5257dc 100644 --- a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/BootScene.cs +++ b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/BootScene.cs @@ -108,6 +108,7 @@ public class BootScene : MonoBehaviour { public bool QueryStreamingAssets(string fileName) { + // 注意:使用了BetterStreamingAssets插件,使用前需要初始化该插件! string buildinFolderName = YooAssets.GetStreamingAssetBuildinFolderName(); return BetterStreamingAssets.FileExists($"{buildinFolderName}/{fileName}"); } diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/FsmNode/FsmUpdateStaticVersion.cs b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/FsmNode/FsmUpdateStaticVersion.cs index 5e58c3c..170ee51 100644 --- a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/FsmNode/FsmUpdateStaticVersion.cs +++ b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/FsmNode/FsmUpdateStaticVersion.cs @@ -30,7 +30,6 @@ internal class FsmUpdateStaticVersion : IFsmNode if (operation.Status == EOperationStatus.Succeed) { - Debug.Log($"Found static version : {operation.PackageVersion}"); PatchUpdater.PackageVersion = operation.PackageVersion; FsmManager.Transition(nameof(FsmUpdateManifest)); }