Beispiel #1
0
 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);
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public bool HandleTouchDown(Vector3 screenPos)
 {
     isTapOnUI = GestureService.IsOnUI();
     return(false);
 }