I am making a 2d game and I was doing pretty good. However, I was making a script for my sprites texture to flip when I press A and D. This is my entire script and a list of my errors if it will help.
#pragma strict
var X : float;
function Start () {
X = transform.localScale.x;
}
function Update () {
if(Input.GetKey.(“a”)){
transform.localScale.x = X;
}else if(Input.GetKey.("d")){
transform.localScale.x = -X;
}
}
[23200-unity+help.jpg|23200]