i have used this script to make my animation and unity says error for “else”
here is the script if anyone can help that would be great
function Update () {
if (Input.GetAxis("Vertical") > 0.2)
animation.CrossFade ("movement");
animation.CrossFade ("movement 2");
}
else{
animation.CrossFade ("idle");}