update space shooter

pull/326/head
何冠峰 2024-07-05 15:10:52 +08:00
parent 86ef93caa3
commit b151f968d7
2 changed files with 3 additions and 2 deletions

View File

@ -44,9 +44,9 @@ internal class FsmInitializePackage : IStateNode
InitializationOperation initializationOperation = null; InitializationOperation initializationOperation = null;
if (playMode == EPlayMode.EditorSimulateMode) if (playMode == EPlayMode.EditorSimulateMode)
{ {
string simulateManifestFilePath = EditorSimulateModeHelper.SimulateBuild(buildPipeline, packageName); var simulateBuildResult = EditorSimulateModeHelper.SimulateBuild(buildPipeline, packageName);
var createParameters = new EditorSimulateModeParameters(); var createParameters = new EditorSimulateModeParameters();
createParameters.EditorFileSystemParameters = FileSystemParameters.CreateDefaultEditorFileSystemParameters(simulateManifestFilePath); createParameters.EditorFileSystemParameters = FileSystemParameters.CreateDefaultEditorFileSystemParameters(simulateBuildResult);
initializationOperation = package.InitializeAsync(createParameters); initializationOperation = package.InitializeAsync(createParameters);
} }

View File

@ -43,6 +43,7 @@ internal class FsmUpdatePackageVersion : IStateNode
} }
else else
{ {
Debug.Log($"Request package version : {operation.PackageVersion}");
_machine.SetBlackboardValue("PackageVersion", operation.PackageVersion); _machine.SetBlackboardValue("PackageVersion", operation.PackageVersion);
_machine.ChangeState<FsmUpdatePackageManifest>(); _machine.ChangeState<FsmUpdatePackageManifest>();
} }