From 04c3cfd1f6f24bb442121ec8f6565ac0658318ad Mon Sep 17 00:00:00 2001 From: yangbear Date: Mon, 6 Jul 2026 04:52:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20PingClickHandler=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E9=87=8D=E5=BB=BA=E2=80=94=E6=B8=85=E9=99=A4=E6=8B=AC=E5=8F=B7?= =?UTF-8?q?=E6=B7=B7=E4=B9=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Interaction/PingClickHandler.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Assets/Scripts/Interaction/PingClickHandler.cs b/Assets/Scripts/Interaction/PingClickHandler.cs index 0b6bcf4..1a83cc3 100644 --- a/Assets/Scripts/Interaction/PingClickHandler.cs +++ b/Assets/Scripts/Interaction/PingClickHandler.cs @@ -47,7 +47,6 @@ public class PingClickHandler : MonoBehaviour void OnMouseDown() { - // touchArray 优先 foreach (var c in Object.FindObjectsOfType()) { if (!c.enabled) continue; @@ -57,7 +56,6 @@ public class PingClickHandler : MonoBehaviour if (!_modelShown) { - // 首次点击: 显示模型,隐藏边框,激活下一个 ping _modelShown = true; StopAllCoroutines(); if (_modelRenderer != null) _modelRenderer.enabled = true; @@ -70,7 +68,6 @@ public class PingClickHandler : MonoBehaviour } else { - // 模型已显示: 点击显示 chanrao if (chanraoObject != null) { chanraoObject.SetActive(true); Debug.Log($"[PingClick] {name} → {chanraoObject.name}"); } gameObject.SetActive(false); var sm = FindObjectOfType(); @@ -79,6 +76,6 @@ public class PingClickHandler : MonoBehaviour } public void ReEnableBorder() { if (_outlineMesh != null) { _outlineMesh.enabled = true; StopAllCoroutines(); StartCoroutine(BlinkOutline()); } } -} public void UndoSecondClick() {} public void UndoShow() { gameObject.SetActive(false); } +}