修改Operation 切换相关逻辑
This commit is contained in:
parent
d3a6eaa882
commit
0433dd7eff
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -106,6 +106,7 @@ public class OperationController : MonoSingleton<OperationController>
|
|||||||
AddStep(item);
|
AddStep(item);
|
||||||
}
|
}
|
||||||
TypeEventSystem.Global.Send<OnOperationChanged>();
|
TypeEventSystem.Global.Send<OnOperationChanged>();
|
||||||
|
OnNext(default);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user