Hi guys;
Been wrestling with this all evening, feel it MUST be something obvious.
This is a snippet of code from my script, the error it gives me is above. It does the same with a Bool too. Last time I used animation was ~a year ago, but I remember it being quite simple. Have I missed something obvious?
public Animation Anim;
// Use this for initialization
void Start () {
Anim= GetComponent<Animation>();
}
// Update is called once per frame
void Update () {
Anim.SetFloat("Speed", MoveSpeed);
Thanks for looking guys.