diff --git a/Assets/Scripts/Interaction/PingClickHandler.cs b/Assets/Scripts/Interaction/PingClickHandler.cs index 30863e7..df1ea77 100644 --- a/Assets/Scripts/Interaction/PingClickHandler.cs +++ b/Assets/Scripts/Interaction/PingClickHandler.cs @@ -150,5 +150,31 @@ public class PingClickHandler : MonoBehaviour StartCoroutine(BlinkOutline()); } + public void ReEnableBorder() + { + if (_outlineRenderer != null) + { + _outlineRenderer.enabled = true; + StopAllCoroutines(); + StartCoroutine(BlinkOutline()); + } + } + + void ReEnableBordersOnAll() + { + var mi = GameObject.Find("manInjury"); + if (mi == null) return; + 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(); + if (h != null) h.ReEnableBorder(); + } + } + Debug.Log("[PingClick] 全部首次点击完成,边框已重新亮起"); + } + public void UndoShow() { gameObject.SetActive(false); } }