From 8af3a68042ad015a127c5a3394b4d4ee03f66ee6 Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Wed, 26 Feb 2025 14:25:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Conditions/ObjClickCondition.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Assets/Scripts/Conditions/ObjClickCondition.cs b/Assets/Scripts/Conditions/ObjClickCondition.cs index 6ebd36aa..91d073b8 100644 --- a/Assets/Scripts/Conditions/ObjClickCondition.cs +++ b/Assets/Scripts/Conditions/ObjClickCondition.cs @@ -56,11 +56,6 @@ namespace QFramework RaycastHit hit; if (Physics.Raycast(ray, out hit)) { - if (hit.collider.gameObject.layer == LayerMask.GetMask("Ignore")) - { - Debug.LogError("˺Ե" + hit.collider.gameObject.name); - return false; - } if (isRight) { return obj == hit.collider.gameObject;