Setting animator to private variable amtr.
private Animator anim;
-~~~~~~~~~~~~~~-
void FixedUpdate () {
anim.SetFloat("Speed",speed);
anim.SetFloat("Direction", direction);}
Floats do not change. I have a “NullReferenceException” error.
Can someone help, please?
Patico
2
Did you forget to assign anim variable? 
That is not assigned.
private Animator anim;
void Awake(){
anim = GetComponent<Animator>();
}
That is assigned.
Yep. I did!
void start () {
anim = GetComponent<Animator>();
}
Paste the script and line numbers with the null refrence.
GetComponent should get the Animator on the GameObject the script is on, so double check.
If that is actually your code then anim is still null because the method should be void Start() not void start()
Good find, i missed that completely lol 