public class TouchTest : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
//Debug.Log(Input.touches.Length);
if (Input.touches.Length > 0)
{
Touch touch1 = Input.touches[0];
//touch1.position;
TouchPhase phase = touch1.phase;
}
}
}