少年修仙传客户端代码仓库
client_Wu Xijin
2019-01-24 380a4aeedf83d363d9ef7e6dac014a38896d10bf
3335 更新ui射线检测机制
1个文件已修改
19 ■■■■■ 已修改文件
Utility/UIUtility.cs 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Utility/UIUtility.cs
@@ -210,21 +210,14 @@
            return false;
        }
        if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
            var eventData = new PointerEventData(EventSystem.current);
            eventData.pressPosition = Input.mousePosition;
            eventData.position = Input.mousePosition;
        var eventData = new PointerEventData(EventSystem.current);
        eventData.pressPosition = Input.mousePosition;
        eventData.position = Input.mousePosition;
            var list = new List<RaycastResult>();
            EventSystem.current.RaycastAll(eventData, list);
        var list = new List<RaycastResult>();
        EventSystem.current.RaycastAll(eventData, list);
            return list.Count > 0;
        }
        else
        {
            return EventSystem.current.IsPointerOverGameObject();
        }
        return list.Count > 0;
    }
    struct Quadrangle