eg.
var halfWidth = Screen.width / 2;
var touch = Input.GetTouch(0);
var touchPos = touch.position;
if (touchPos.x < halfWidth)
{
Debug.Log("Left touched!");
}
else
{
Debug.Log("Right touched!");
}
* Be the first to Make Comment