fix: TouchPositionHandler改为激活Shose而非chanraotuibu
This commit is contained in:
@@ -75,18 +75,20 @@ public class TouchPositionHandler : MonoBehaviour
|
||||
var sm = FindObjectOfType<StepManager>();
|
||||
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<StepManager>()?.InitPingSteps(); }
|
||||
var h = shose.GetComponent<ShoseClickHandler>();
|
||||
if (h == null) h = shose.AddComponent<ShoseClickHandler>();
|
||||
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 已激活");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user