TouchManager.cs
public class TouchManager : MonoBehaviour {
// タッチ
Touch touch;
void Update ()
{
if (Input.touchCount > 0)
{
this.touch = Input.touches[0];
if (this.touch.phase == TouchPhase.Began)
{
Debug.Log("Input.touchCount == " + Input.touchCount);
switch (Input.touchCount)
{
case 1 : // 1本指でタッチ
Debug.Log("Single Touch");
break;
case 2 : // 2本指でタッチ
Debug.Log("Double Touch");
break;
case 3 : // 3本指でタッチ
Debug.Log("Triple Touch");
break;
}
}
}
}
}