// Update is called once per frame void Update() { timer += Time.deltaTime; Vector2 currentPoint = magicTest.rootPos; gesture.Capturing(currentPoint.x, currentPoint.y); lastPoint = currentPoint; if (timer > Interval) { gesture.StopCapture(); timer = 0; } }
// Update is called once per frame void Update() { timer += Time.deltaTime; Vector2 currentPoint = Input.mousePosition; gesture.Capturing(currentPoint.x, currentPoint.y); lastPoint = currentPoint; if (timer > Interval) { gesture.StopCapture(); timer = 0; } }