hello… i have a cube in my project and i made this script to make him move forward… i fixed the “Axes” i applied the script to my player… all corect… but when i press play and i click w it doesnt move! ! why?
thats my code
CODE:
`#pragma strict
var moveSpeed : float;
function Start () {
}
function Update () {
if(Input.GetButton(“Forward”)) {
transform.Translate(transform.forward * moveSpeed * Time.deltaTime);
}
}`