From b15a8435973b53f9770fb4b56a02545d15b8d0d9 Mon Sep 17 00:00:00 2001 From: YangHua <1475658476@qq.com> Date: Thu, 29 Aug 2024 09:25:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9Fstepstate=20triggerID=20?= =?UTF-8?q?=E5=8F=91=E5=B0=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Resources/UI/UI_Tip/ToolInfoTips.prefab | 8 ++++---- Assets/Scripts/CXX/StepState/StepState.cs | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Assets/Resources/UI/UI_Tip/ToolInfoTips.prefab b/Assets/Resources/UI/UI_Tip/ToolInfoTips.prefab index bc9b459..5cf8d9e 100644 --- a/Assets/Resources/UI/UI_Tip/ToolInfoTips.prefab +++ b/Assets/Resources/UI/UI_Tip/ToolInfoTips.prefab @@ -60,7 +60,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 + m_RaycastTarget: 0 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: @@ -195,7 +195,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 + m_RaycastTarget: 0 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: @@ -249,7 +249,7 @@ RectTransform: m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5068044} + m_Pivot: {x: 0.5, y: 0.5012299} --- !u!222 &9083784722124570545 CanvasRenderer: m_ObjectHideFlags: 0 @@ -334,7 +334,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 + m_RaycastTarget: 0 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: diff --git a/Assets/Scripts/CXX/StepState/StepState.cs b/Assets/Scripts/CXX/StepState/StepState.cs index 11a20ff..1ff4564 100644 --- a/Assets/Scripts/CXX/StepState/StepState.cs +++ b/Assets/Scripts/CXX/StepState/StepState.cs @@ -80,14 +80,14 @@ public abstract class StepState : MonoBehaviour GameManager.UIMgr.HidePanel(); GameManager.RunModelMgr.SceneType = jumpSence; GameManager.EventMgr.EventTrigger(Enum_EventType.SwitchScene, jumpSence); - //GameManager.EventMgr.EventTrigger(Enum_EventType.SwitchSubProcessStepTriggerID, ProcessManager.Instance.subProcessStepTriggerID); + GameManager.EventMgr.EventTrigger(Enum_EventType.SwitchSubProcessStepTriggerID, ProcessManager.Instance.subProcessStepTriggerID); - doStepState.Invoke(true); + doStepState?.Invoke(true); }); } else { - doStepState.Invoke(false); + doStepState?.Invoke(false); } }