From b151f968d708d7676599c4b9548c9e619c44dde8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Fri, 5 Jul 2024 15:10:52 +0800 Subject: [PATCH] update space shooter --- .../Runtime/PatchLogic/FsmNode/FsmInitializePackage.cs | 4 ++-- .../Runtime/PatchLogic/FsmNode/FsmUpdatePackageVersion.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmInitializePackage.cs b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmInitializePackage.cs index 5f9326a..9cc259c 100644 --- a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmInitializePackage.cs +++ b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmInitializePackage.cs @@ -44,9 +44,9 @@ internal class FsmInitializePackage : IStateNode InitializationOperation initializationOperation = null; if (playMode == EPlayMode.EditorSimulateMode) { - string simulateManifestFilePath = EditorSimulateModeHelper.SimulateBuild(buildPipeline, packageName); + var simulateBuildResult = EditorSimulateModeHelper.SimulateBuild(buildPipeline, packageName); var createParameters = new EditorSimulateModeParameters(); - createParameters.EditorFileSystemParameters = FileSystemParameters.CreateDefaultEditorFileSystemParameters(simulateManifestFilePath); + createParameters.EditorFileSystemParameters = FileSystemParameters.CreateDefaultEditorFileSystemParameters(simulateBuildResult); initializationOperation = package.InitializeAsync(createParameters); } diff --git a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmUpdatePackageVersion.cs b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmUpdatePackageVersion.cs index 0e74107..34621cd 100644 --- a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmUpdatePackageVersion.cs +++ b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmUpdatePackageVersion.cs @@ -43,6 +43,7 @@ internal class FsmUpdatePackageVersion : IStateNode } else { + Debug.Log($"Request package version : {operation.PackageVersion}"); _machine.SetBlackboardValue("PackageVersion", operation.PackageVersion); _machine.ChangeState(); }