Hi,
I have a topview camera and wish to pan the camera around the map, I would use getAxis to do this if I was using a mouse but this does not seem to work in the same way for an android touch screen. Hrere is what I have:
var horizontalSpeed = 0.5;
var verticalSpeed = 0.5;
function Update ()
{
if(Input.GetMouseButton(0))
{
var horiz = horizontalSpeed * -(Input.GetAxis ("Mouse X"));
var vert = verticalSpeed * -(Input.GetAxis ("Mouse Y"));
transform.Translate (horiz, vert, 0);
}
}
How would I change this to work with an android touchscreen?