From b806219824e74de5f327a62cafda48300f66dcf7 Mon Sep 17 00:00:00 2001 From: YangHua <1475658476@qq.com> Date: Mon, 19 Aug 2024 16:30:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=82=B9=E5=87=BB=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E7=9B=B4=E6=8E=A5=E8=B7=B3=E8=BD=AC=E5=BE=97=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Project/CXX/StepState.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Project/CXX/StepState.cs b/Assets/Scripts/Project/CXX/StepState.cs index cee9175..2036edc 100644 --- a/Assets/Scripts/Project/CXX/StepState.cs +++ b/Assets/Scripts/Project/CXX/StepState.cs @@ -29,7 +29,7 @@ public class StepState : MonoBehaviour stepStateBases = transform.GetComponentsInChildren(true).ToList(); subProcessId = int.Parse(gameObject.name); schemeId = int.Parse(transform.parent.name); - systemId= int.Parse(transform.parent.parent.name); + systemId = int.Parse(transform.parent.parent.name); } ///// @@ -65,12 +65,15 @@ public class StepState : MonoBehaviour default: return; } - if (GameManager.RunModelMgr.SceneType != initSceneType) { + GameManager.UIMgr.ShowPanel(E_UI_Layer.System); GameManager.ScenesMgr.LoadSceneAsyn(sname, () => { Debug.Log("²½Ö賡¾°£º" + initSceneType.ToString()); + GameManager.UIMgr.HidePanel(); + GameManager.RunModelMgr.SceneType = initSceneType; + GameManager.EventMgr.EventTrigger(Enum_EventType.SwitchScene, initSceneType); }); } }