回退代码

This commit is contained in:
shenjianxing 2025-02-26 14:25:21 +08:00
parent bbf6fd7246
commit 8af3a68042

View File

@ -56,11 +56,6 @@ namespace QFramework
RaycastHit hit; RaycastHit hit;
if (Physics.Raycast(ray, out 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) if (isRight)
{ {
return obj == hit.collider.gameObject; return obj == hit.collider.gameObject;