From d8396050aca85072c93e8a71324839f748b1f995 Mon Sep 17 00:00:00 2001 From: yangbear Date: Sun, 5 Jul 2026 02:40:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20chanraotuibu=E6=BF=80=E6=B4=BB=E5=8A=A0?= =?UTF-8?q?=E8=AF=8A=E6=96=AD=E6=97=A5=E5=BF=97+InitPingSteps=E8=A1=A5?= =?UTF-8?q?=E9=BD=90=E4=B8=8A/=E4=B8=8B=E4=B8=80=E6=AD=A5=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Interaction/TouchPositionHandler.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Interaction/TouchPositionHandler.cs b/Assets/Scripts/Interaction/TouchPositionHandler.cs index 6e8669f..2ee8a27 100644 --- a/Assets/Scripts/Interaction/TouchPositionHandler.cs +++ b/Assets/Scripts/Interaction/TouchPositionHandler.cs @@ -76,13 +76,17 @@ public class TouchPositionHandler : MonoBehaviour if (sm != null) sm.RecordWomanStep(stepIndex); // point1 点击后先激活 chanraotuibu + Debug.Log("[TouchPosition] stepIndex=" + stepIndex); if (stepIndex == 1) { var mi = GameObject.Find("manInjury"); + Debug.Log("[TouchPosition] manInjury found=" + (mi != null)); if (mi != null) { var ct = mi.transform.Find("chanraotuibu"); - if (ct != null) { ct.gameObject.SetActive(true); Debug.Log("[TouchPosition] chanraotuibu 已激活"); } + Debug.Log("[TouchPosition] chanraotuibu found=" + (ct != null)); + if (ct != null) { ct.gameObject.SetActive(true); Debug.Log("[TouchPosition] chanraotuibu 已激活"); + FindObjectOfType()?.InitPingSteps(); } } }