This error pops up
Assets/Standard Assets/Character Controllers/Sources/Scripts/PlayerAnimate.js(8,29): BCE0020: An instance of type ‘UnityEngine.GameObject’ is required to access non static member ‘GetComponent’.
my code is this
#pragma strict
function Start () {
}
function Update () {
var AT = GameObject.GetComponent(AnimateTexture); //Store AnimateTexture Script
if(Input.GetKey(“a”)){ //Player moves left
AT.rowNumber = 1; //Change to running animation
} else if(Input.GetKey(“d”)){ //Player moves right
AT.rowNumber = 1; //Change to running animation
} else { //Player is not moving
AT.rowNumber = 0; //Change to idle animation!
}
}