From d2c9e03bc5b521ca343f559613bf8d1dbbff2c6a Mon Sep 17 00:00:00 2001 From: yangbear Date: Sun, 5 Jul 2026 02:30:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20ping=E4=B8=A4=E8=BD=AE=E8=BE=B9?= =?UTF-8?q?=E6=A1=86=E2=80=944=E4=B8=AA=E5=85=A8=E7=82=B9=E5=AE=8C?= =?UTF-8?q?=E5=90=8E=E8=BE=B9=E6=A1=86=E9=87=8D=E6=96=B0=E4=BA=AE=E8=B5=B7?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E7=AC=AC=E4=BA=8C=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - _firstClickCount达4时ReEnableBordersOnAll遍历所有可见ping - ReEnableBorder重启BlinkOutline协程 - Phase0点击→边框消失→Phase1边框重新闪烁 --- .../Scripts/Interaction/PingClickHandler.cs | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) 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); } }