| | |
| | | return false;
|
| | | }
|
| | |
|
| | | var eventData = new PointerEventData(EventSystem.current);
|
| | | eventData.pressPosition = Input.mousePosition;
|
| | | eventData.position = Input.mousePosition;
|
| | | if (Application.platform == RuntimePlatform.IPhonePlayer)
|
| | | {
|
| | | 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;
|
| | | return list.Count > 0;
|
| | | }
|
| | | else
|
| | | {
|
| | | return EventSystem.current.IsPointerOverGameObject();
|
| | | }
|
| | | }
|
| | |
|
| | | struct Quadrangle
|