I have a script that uses touchCount and Raycast and when I played it it does not work with multitouch:
if(Input.touchCount > 0) {
hit = Physics2D.Raycast(camera.ScreenToWorldPoint(Input.mousePosition), Vector2.zero);
if(Input.GetTouch(0).phase == TouchPhase.Began){
if( hit != null && hit.collider.gameObject.name == "Right"){
//Other Stuff
}
}
}
Why wouldn’t it work with multitouch?