Animation State not working

hi,
animation state not changing even parameter changed. Script used :

using UnityEngine;
using System.Collections;

public class AnimState : MonoBehaviour {


    Animator anim;

    void Start()
    {
        anim = gameObject.GetComponent<Animator>();
    }
     
    void Update () {

        if (DropManager.gameOver) { 
          anim.SetBool("go", true); 
        }
    }
}

pparently the code is right, I do not encounter problems.
quisas is esterno a problem such as:
-first checks if a print is entering the conditional if.
-second could you see if you’re writing well bool animation “go”, quisas is different. do not take it wrong sometimes those things happen.
-third check that your variable “drogmanager.gameover this to” true ", I repeat, do not take this the wrong way, one tends to forget things when this a little stressed.
-and nothing more I use in my print or conditional debug.log to verify that they are entering then I delete them to avoid more lines…
:v :v :v :v