update space shooter

pull/455/head
何冠峰 2025-01-03 19:15:38 +08:00
parent bc7c6c1f33
commit b70d821384
1 changed files with 2 additions and 3 deletions

View File

@ -40,9 +40,8 @@ internal class FsmInitializePackage : IStateNode
InitializationOperation initializationOperation = null; InitializationOperation initializationOperation = null;
if (playMode == EPlayMode.EditorSimulateMode) if (playMode == EPlayMode.EditorSimulateMode)
{ {
var simulateBuildParam = new EditorSimulateBuildParam(packageName); var buildResult = EditorSimulateModeHelper.SimulateBuild(packageName);
var simulateBuildResult = EditorSimulateModeHelper.SimulateBuild(simulateBuildParam); var packageRoot = buildResult.PackageRootDirectory;
var packageRoot = simulateBuildResult.PackageRootDirectory;
var createParameters = new EditorSimulateModeParameters(); var createParameters = new EditorSimulateModeParameters();
createParameters.EditorFileSystemParameters = FileSystemParameters.CreateDefaultEditorFileSystemParameters(packageRoot); createParameters.EditorFileSystemParameters = FileSystemParameters.CreateDefaultEditorFileSystemParameters(packageRoot);
initializationOperation = package.InitializeAsync(createParameters); initializationOperation = package.InitializeAsync(createParameters);