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

            t.interactable = i;
            t.touch        = touched;
            return(t);
        }
Beispiel #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);
            }
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #8
0
 public void rotateObject(TouchGesturePayload t)
 {
 }
Beispiel #9
0
 public void rescaleObject(TouchGesturePayload t)
 {
 }
Beispiel #10
0
 public void panObject(TouchGesturePayload t)
 {
 }
Beispiel #11
0
 public void tapObject(TouchGesturePayload t)
 {
 }
 public void ZoomCamera(TouchGesturePayload t)
 {
 }
 public void PanCamera(TouchGesturePayload t)
 {
 }