少年修仙传客户端代码仓库
client_Wu Xijin
2018-08-14 a6b4579b7c83b90d940f48977dfb06c74f5b3c68
Fight/Actor/UserInputHandler.cs
@@ -188,21 +188,12 @@
        if (Input.GetMouseButtonDown(0))
        {
            if (UIUtility.IsPointerOverGameObject())
            {
                return;
            }
            Camera _mainCamera = CameraController.Instance.CameraObject;
#if UNITY_EDITOR
            if (EventSystem.current != null && EventSystem.current.IsPointerOverGameObject())
            {
                return;
            }
#else
            int id = Input.GetTouch(0).fingerId;
            if (EventSystem.current!=null &&EventSystem.current.IsPointerOverGameObject(id))
            {
                return;
            }
#endif
            RaycastHit _hitInfo;
            Ray _ray = _mainCamera.ScreenPointToRay(Input.mousePosition);