Hello Everyone,
How I can assign my right button mouse to this script? I want to press my right mouse button and move my object.
This is the original script.
Please any advice is more than welcome!
var movedownY = 0.0;
var sensitivityY = 0.1;
function Update(){
movedownY += Input.GetAxis("Mouse Y") * sensitivityY;
if (Input.GetAxis("Mouse Y") != 0){
transform.Translate(Vector3.forward * movedownY);
}
movedownY = 0.0;
}