回退代码
This commit is contained in:
parent
bbf6fd7246
commit
8af3a68042
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user