-1
我基本上是編程方面的新手,我遇到了閏秒運動傳感器問題,無法檢測到雙擊。有人能幫助我嗎?如何在閏距運動傳感器中製作雙擊手勢
所以這是我爲我的菜單代碼:
using UnityEngine;
using System.Collections;
public class Touch : MonoBehaviour {
void OnCollisionEnter(Collision other){
Debug.Log ("Collision Event " + other.transform.name);
string tipOfHand = other.transform.parent.name;
if (tipOfHand == "index") {
Application.LoadLevel(1);
}
}
}
你知道如何檢測一個水龍頭嗎?你知道如何計算兩次函數調用之間的時間嗎?然後,你知道如何檢測雙擊;) – Hellium
此外,不要忘記檢查Leap Motion論壇:https://community.leapmotion.com/t/implementing-double-tap-gesture/710 – Hellium
@Hellium先生,我編輯我的問題,你可以幫我 –