diff --git a/Assets/Scripts/Interaction/TouchPositionHandler.cs b/Assets/Scripts/Interaction/TouchPositionHandler.cs index 2ee8a27..62c68c2 100644 --- a/Assets/Scripts/Interaction/TouchPositionHandler.cs +++ b/Assets/Scripts/Interaction/TouchPositionHandler.cs @@ -75,18 +75,20 @@ public class TouchPositionHandler : MonoBehaviour var sm = FindObjectOfType(); if (sm != null) sm.RecordWomanStep(stepIndex); - // point1 点击后先激活 chanraotuibu - Debug.Log("[TouchPosition] stepIndex=" + stepIndex); + // point1 点击后先激活 Shose if (stepIndex == 1) { - var mi = GameObject.Find("manInjury"); - Debug.Log("[TouchPosition] manInjury found=" + (mi != null)); - if (mi != null) + var shose = GameObject.Find("Shose"); + if (shose != null) { - var ct = mi.transform.Find("chanraotuibu"); - Debug.Log("[TouchPosition] chanraotuibu found=" + (ct != null)); - if (ct != null) { ct.gameObject.SetActive(true); Debug.Log("[TouchPosition] chanraotuibu 已激活"); - FindObjectOfType()?.InitPingSteps(); } + var h = shose.GetComponent(); + if (h == null) h = shose.AddComponent(); + h.targetPoint = GameObject.Find("ShosePoint")?.transform; + if (h.nextObject == null) + h.nextObject = GameObject.Find("manInjury")?.transform.Find("ping.004")?.gameObject; + shose.SetActive(false); + shose.SetActive(true); + Debug.Log("[TouchPosition] Shose 已激活"); } }