Animator is not playing Animator Controller error.

This error is apparently caused by the animator being inactive; check out this post for more details: "Animator is not playing an AnimatorController" UnityEngine.Animator:SetTrigger(String)

Line 17 isn’t doing anything. If you’re trying to assign a reference to the “Anim” variable, you need to do it like this: Anim = GetComponent<Animator>();