i am trying to just animate the walk and idle animation
using UnityEngine;
using System.Collections;
public class animation : MonoBehaviour
{
void Update()
{
//between them when the player wants to move
if (Mathf.Abs(Input.GetAxis("Vertical")) > 0.1)
animation.CrossFade("Run");
else
animation.CrossFade("Idle");
}
} it wont let me load it