How would i do a long press? My algorithm i am trying to do goes like this (but doesnt seem to work) if(Input.touchCount == 1 && Input.GetTouch(0).phase == TouchPhase.Began) {touch0BeginTime = Time.time;} if(Input.touchCount == 1 && Input.GetTouch(0).phase == TouchPhase.Stationary && (Time.time - touch0BeginTime)) {//long press code here} Why doesn’t this work? Try this: private var longPressDetec
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く