everytime i get this error and really dont know how to fix it i tried many things but keeps coming up the scirpt is this
#pragma strict
Var X : float;
function Start () {
//Gathering normal object scale x
X = Transform.localScale.X;
}
function Update () {
if(Input.GetKey("a")){ //Gamer pushes left a key
//Set texture to normal position.
transform.localScale.x = X;
}else if(input.GetKey("d")){ //push d
//Flip the texture
transform.localScale.x = -X;
}
}
↧