public bool HandleTouchDown(Vector3 screenPos) { dragged = null; isDragging = false; touched = null; if (!GestureService.IsOnUI()) { var t = Utils.GetInputTargetOnGrid(screenPos, sceneSystem, cameraService.activeCamera, gridService); if (t != null && !t.hasGrid || (t != null && t.hasGrid && t.grid.cells.Count > 0)) { touched = t; } } return(false); }
public bool HandleDragStart(Vector3 screenPos) { if (!GestureService.IsOnUI()) { inertia = false; isDragging = true; currentPos = screenPos; StartDragEntity(); #if UNITY_EDITOR startPos = currentPos; #endif } else { inertia = false; isDragging = false; } return(false); }
public bool HandleTouchDown(Vector3 screenPos) { isTapOnUI = GestureService.IsOnUI(); return(false); }