Example #1
0
 void Start()
 {
     // Support for gestures
     SimpleGesture.On4AxisFlickSwipeUp(() => SwipeCallback(Direction.UP));
     SimpleGesture.On4AxisFlickSwipeDown(() => SwipeCallback(Direction.DOWN));
     SimpleGesture.On4AxisFlickSwipeLeft(() => SwipeCallback(Direction.LEFT));
     SimpleGesture.On4AxisFlickSwipeRight(() => SwipeCallback(Direction.RIGHT));
 }
Example #2
0
    // INITIALIZE: -----------------------------------------------------------------------------------------------------

    public void Awake()
    {
        TestsManager._instance      = this;
        Application.targetFrameRate = 60;

        this.AddMessage("Console");
        SimpleGesture.OnTap(this.CallbackTap);
        SimpleGesture.On4AxisFlickSwipeUp(this.CallbackSwipeUp);
        SimpleGesture.On4AxisFlickSwipeDown(this.CallbackSwipeDown);
        SimpleGesture.On4AxisFlickSwipeLeft(this.CallbackSwipeLeft);
        SimpleGesture.On4AxisFlickSwipeRight(this.CallbackSwipeRight);

        SimpleGesture.OnCircle(this.CallbackCircle);
        SimpleGesture.OnZigZag(this.CallbackZigZag);

        SimpleGesture.WhilePanning(this.CallbackPanning);
        SimpleGesture.WhilePinching(this.CallbackPinching);
        SimpleGesture.WhileStretching(this.CallbackStretching);
        //SimpleGesture.WhileTwisting(this.CallbackTwisting);
    }