C# Acessing animator on another Object

Hey there, I am currently trying to trigger an animator bool with the new 2D Animator tool, what I need to do is this:

animator.SetBool("Level2", false );

But from another script on another object, and so far it does not work the usual way, by doing:

public GameObject myObject;
    
    myObject.animator.SetBool("Level2", false );

Any help is appreciated! :smiley:

public GameObject otherObject;
Animator otherAnimator;

void Awake () {
    otherAnimator = otherObject.GetComponent<Animator> ();
}

If otherObject references to a GameObject that has an Animator component on it, otherAnimator will contain a valid reference.