Hi guys, I started getting a null reference exception when I try to do the following…
private Animator anim;
anim = GetComponent<Animator> ();
anim.SetFloat ("speed", h); //throws null reference exception error
It was working fine earlier. Both the script and the Animator are on the same game object.
Any idea what’s going on?
