feat: 流程重排—Shoe→chanraotuibu→ping004→逐点模型→chanrao
This commit is contained in:
@@ -2,6 +2,7 @@ using UnityEngine;
|
||||
|
||||
public class ChanraoTuibuHandler : MonoBehaviour
|
||||
{
|
||||
public GameObject nextObject;
|
||||
private MeshRenderer _outlineMesh;
|
||||
|
||||
void OnEnable()
|
||||
@@ -44,21 +45,11 @@ public class ChanraoTuibuHandler : MonoBehaviour
|
||||
Debug.Log($"[ChanraoTuibu] {name} 被点击");
|
||||
StopAllCoroutines();
|
||||
if (_outlineMesh != null) _outlineMesh.enabled = false;
|
||||
|
||||
// 亮起所有 ping 的边框进入第二轮
|
||||
var mi = GameObject.Find("manInjury");
|
||||
if (mi != null)
|
||||
{
|
||||
for (int i = 4; i >= 1; i--)
|
||||
{
|
||||
var pt = mi.transform.Find("ping." + i.ToString("D3"));
|
||||
if (pt != null && pt.gameObject.activeSelf)
|
||||
{
|
||||
var h = pt.gameObject.GetComponent<PingClickHandler>();
|
||||
if (h != null) h.ReEnableBorder();
|
||||
}
|
||||
}
|
||||
Debug.Log("[ChanraoTuibu] ping边框第二轮已亮起");
|
||||
}
|
||||
// 显示模型
|
||||
var mr = GetComponent<MeshRenderer>();
|
||||
if (mr != null) mr.enabled = true;
|
||||
foreach (var r in GetComponentsInChildren<Renderer>(true)) r.enabled = true;
|
||||
// 激活下一个(ping.004)
|
||||
if (nextObject != null) { nextObject.SetActive(true); Debug.Log($"[ChanraoTuibu] → {nextObject.name}"); }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user