Exemple #1
0
        public TouchGesturePayload CreateTapTouchGesturePayload(Interactable i, Touch touched)
        {
            TouchGesturePayload t = new TouchGesturePayload();

            t.interactable = i;
            t.touch        = touched;
            return(t);
        }
Exemple #2
0
        // let the action type and which UI / Game Object Element determine state
        // mimicing the Swift Touch
        private void TapGestureRecognizer(Touch t)
        {
            Interactable k;

            if (TouchHasHitInteractable(t, out k))
            {
                TouchGesturePayload g = CreateTouchGesturePayload(k, t);
            }
        }
Exemple #3
0
        public TouchGesturePayload CreatePanTouchGesturePayload(Interactable i, Vector2 panMovement, Touch touched)
        {
            TouchGesturePayload t = new TouchGesturePayload();

            t.interactable = i;
            t.panMovement  = panMovement;
            t.touch        = touched;
            return(t);
        }
Exemple #4
0
        public TouchGesturePayload CreatePinchTouchGesturePayload(Interactable i, float touchDelta, Touch t1, Touch t2)
        {
            TouchGesturePayload t = new TouchGesturePayload();

            t.interactable = i;
            t.touchDelta   = touchDelta;
            t.touch        = t1;
            t.secondTouch  = t2;
            return(t);
        }
Exemple #5
0
        public TouchGesturePayload CreateRotationTouchGesturePayload(Interactable i, Vector2 angle, Touch t1, Touch t2)
        {
            TouchGesturePayload t = new TouchGesturePayload();

            t.interactable = i;
            t.rotation     = angle;
            t.touch        = t1;
            t.secondTouch  = t2;
            return(t);
        }
Exemple #6
0
        public TouchGesturePayload CreateRotateTouchGesturePayload(Interactable i, float rotationSpeed, Touch t1, Touch t2)
        {
            TouchGesturePayload t = new TouchGesturePayload();

            t.interactable  = i;
            t.rotationSpeed = rotationSpeed;
            t.touch         = t1;
            t.secondTouch   = t2;
            return(t);
        }
Exemple #7
0
        public TouchGesturePayload CreatePanTouchGesturePayload(Interactable i, Vector3 touchWorldPos, Ray touchRay, float touchRayDistance, Touch touched)
        {
            TouchGesturePayload t = new TouchGesturePayload();

            t.interactable     = i;
            t.touchWorldPos    = touchWorldPos;
            t.touchRay         = touchRay;
            t.touchRayDistance = touchRayDistance;
            t.touch            = touched;
            return(t);
        }
Exemple #8
0
 public void rotateObject(TouchGesturePayload t)
 {
 }
Exemple #9
0
 public void rescaleObject(TouchGesturePayload t)
 {
 }
Exemple #10
0
 public void panObject(TouchGesturePayload t)
 {
 }
Exemple #11
0
 public void tapObject(TouchGesturePayload t)
 {
 }
 public void ZoomCamera(TouchGesturePayload t)
 {
 }
 public void PanCamera(TouchGesturePayload t)
 {
 }