This commit is contained in:
parent
4327751b70
commit
50a0800366
|
@ -245,6 +245,8 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
|
|||
Detection();
|
||||
|
||||
}
|
||||
public EventSystem eventsystem;
|
||||
public GraphicRaycaster RaycastInCanvas;
|
||||
/// <summary>
|
||||
/// 点击无线电显示UI
|
||||
/// <summary>
|
||||
|
@ -256,10 +258,10 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
|
|||
RaycastHit hit;
|
||||
if (Physics.Raycast(ray, out hit))
|
||||
{
|
||||
//if (CheckGuiRaycastObjects())
|
||||
//{
|
||||
// return;
|
||||
//}
|
||||
if (GlobalFlag.CheckGuiRaycastObjects(eventsystem, RaycastInCanvas))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (EventSystem.current.IsPointerOverGameObject())
|
||||
{
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue