From 4ce5ab0578acc9555384a8e2e88cb60a1d71adff Mon Sep 17 00:00:00 2001 From: yangbear Date: Fri, 3 Jul 2026 01:08:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20TouchPositionHandler.OnEnable=E8=A1=A5co?= =?UTF-8?q?llider=E9=98=B2=E6=AD=A2=E7=82=B9=E5=87=BB=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Interaction/TouchPositionHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Interaction/TouchPositionHandler.cs b/Assets/Scripts/Interaction/TouchPositionHandler.cs index 9183d21..c092705 100644 --- a/Assets/Scripts/Interaction/TouchPositionHandler.cs +++ b/Assets/Scripts/Interaction/TouchPositionHandler.cs @@ -25,7 +25,7 @@ public class TouchPositionHandler : MonoBehaviour if (_meshRenderer != null) { _meshRenderer.enabled = true; - // 只显示描边,填充透明 + var col = GetComponent(); if (col == null) { var sc = gameObject.AddComponent(); sc.radius = 0.3f; } // 只显示描边,填充透明 var mat = _meshRenderer.material; if (mat != null && mat.HasProperty("_MainColor")) {