修改Operation 切换相关逻辑

This commit is contained in:
shenjianxing 2025-03-10 17:06:31 +08:00
parent d3a6eaa882
commit 0433dd7eff
2 changed files with 2 additions and 1 deletions

View File

@ -39,11 +39,11 @@ namespace QFramework
public void OnExecute(float dt) public void OnExecute(float dt)
{ {
this.Finish();
if (datas.ContainsKey("name")) if (datas.ContainsKey("name"))
{ {
OperationController.Instance.ChangeOperation(datas["name"]); OperationController.Instance.ChangeOperation(datas["name"]);
} }
this.Finish();
OnFinished?.Invoke(); OnFinished?.Invoke();
} }

View File

@ -106,6 +106,7 @@ public class OperationController : MonoSingleton<OperationController>
AddStep(item); AddStep(item);
} }
TypeEventSystem.Global.Send<OnOperationChanged>(); TypeEventSystem.Global.Send<OnOperationChanged>();
OnNext(default);
} }
} }