void Update(){ if(Input.touchCount > 0){ foreach(Touch t in Input.touches){ if (t.phase == TouchPhase.Began){ Debug.Log("タッチを開始しました。"); } if (t.phase == TouchPhase.Stationary){ Debug.Log("タッチを継続中ですが動いていません。"); } if (t.phase == TouchPhase.Moved){ Debug.Log("指が動いています。"); } if (t.phase == TouchPhase.Ended){ Debug.Log("タッチを終了しました。"); } if (t.phase == TouchPhase.Canceled){ Debug.Log("タッチをキャンセルしました。"); } } } }
コメントをかく