diff --git a/Assets/Scripts/UI/UIModuleSelect.cs b/Assets/Scripts/UI/UIModuleSelect.cs index 61448962..39db96ce 100644 --- a/Assets/Scripts/UI/UIModuleSelect.cs +++ b/Assets/Scripts/UI/UIModuleSelect.cs @@ -81,14 +81,7 @@ namespace QFramework.Example private void OnLoadFinished(Scene arg0, LoadSceneMode arg1) { SceneManager.sceneLoaded -= OnLoadFinished; - if (Global.Instance.curModule.FSM.Count > 0) - { - var machin = StateMachineController.Instance; - } - if (Global.Instance.curModule.Operations != null && Global.Instance.curModule.Operations.Count > 0) - { - var op = OperationController.Instance; - } + if (Global.Instance.curModule.Devices != null && Global.Instance.curModule.Devices.Count > 0) { var dev = DeviceController.Instance; @@ -101,6 +94,14 @@ namespace QFramework.Example { ScoreController.Instance.Init(); } + if (Global.Instance.curModule.Operations != null && Global.Instance.curModule.Operations.Count > 0) + { + var op = OperationController.Instance; + } + if (Global.Instance.curModule.FSM.Count > 0) + { + var machin = StateMachineController.Instance; + } UIKit.OpenPanelAsync().ToAction().StartGlobal(() => {