// Use this for initialization void Start() { if (enableMultiTapFilter) { IT_Gesture.SetMultiTapFilter(enableMultiTapFilter); IT_Gesture.SetMaxMultiTapCount(maxMultiTapCount); IT_Gesture.SetMaxMultiTapInterval(multiTapInterval); } for (int i = 0; i < multiTapMouse.Length; i++) { multiTapMouse[i] = new MultiTapTracker(i); } for (int i = 0; i < multiTapTouch.Length; i++) { multiTapTouch[i] = new MultiTapTracker(i); } for (int i = 0; i < multiTapMFTouch.Length; i++) { multiTapMFTouch[i] = new MultiTapTracker(i); } StartCoroutine(CheckMultiTapCount()); StartCoroutine(MultiFingerRoutine()); //Debug.Log(IT_Gesture.GetTouch(0).position); }
private void Start() { if (enableMultiTapFilter) { IT_Gesture.SetMultiTapFilter(enableMultiTapFilter); IT_Gesture.SetMaxMultiTapCount(maxMultiTapCount); IT_Gesture.SetMaxMultiTapInterval(multiTapInterval); } for (int i = 0; i < multiTapMouse.Length; i++) { multiTapMouse[i] = new MultiTapTracker(i); } for (int j = 0; j < multiTapTouch.Length; j++) { multiTapTouch[j] = new MultiTapTracker(j); } for (int k = 0; k < multiTapMFTouch.Length; k++) { multiTapMFTouch[k] = new MultiTapTracker(k); } StartCoroutine(CheckMultiTapCount()); StartCoroutine(MultiFingerRoutine()); }