I am stuck with an issue of moving the slider on android mobiles with finger touch event while developing pong game in unity 3D, though its working fine for pc.
This game is developed in 2D environment... please help me if anyone have available solution to this issue
Actually I have developed this game for pc so I have code for the movement of slider accordingly as below:
var keyup:KeyCode;
var keydown:KeyCode;
var speed:float=1;
function Update () {
if(Input.GetKey(keyup))
rigidbody2D.velocity.y=speed;
else if(Input.GetKey(keydown))
rigidbody2D.velocity.y=speed*-1;
else
rigidbody2D.velocity.y=0;
}
But now i want to use this game for android mobiles.