修复objclick bug
This commit is contained in:
parent
684614b43b
commit
f118173ae7
@ -56,6 +56,10 @@ namespace QFramework
|
|||||||
}
|
}
|
||||||
if (obj != null)
|
if (obj != null)
|
||||||
{
|
{
|
||||||
|
if (obj.activeSelf == false)
|
||||||
|
{
|
||||||
|
Debug.LogError(obj.name + "当前是隐藏状态");
|
||||||
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
anim = obj.GetComponent<Animation>();
|
anim = obj.GetComponent<Animation>();
|
||||||
|
|||||||
@ -45,7 +45,7 @@ namespace QFramework
|
|||||||
obj = DeviceController.Instance.GetDeviceObj(deviceName);
|
obj = DeviceController.Instance.GetDeviceObj(deviceName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (obj != null && Input.GetMouseButtonUp(0))
|
if (obj != null && Input.GetMouseButtonUp(0) && EventSystem.current.IsPointerOverGameObject() == false)
|
||||||
{
|
{
|
||||||
Vector3 mousePos = Input.mousePosition;
|
Vector3 mousePos = Input.mousePosition;
|
||||||
Ray ray = Camera.main.ScreenPointToRay(mousePos);
|
Ray ray = Camera.main.ScreenPointToRay(mousePos);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user