unity – SetTrigger Only Works In Start and Not OnTriggerEnter

I’m having an issue with my animator for an enemy, where a bite animation should trigger when the enemy collides with the player. Weirdly enough, the sound effect for the bite activates, but the trigger doesn’t change.

There is only one major hitch I can think of, which is that the player’s collider isn’t set as a trigger, but for some reason the game detects the collision anyway when I put a debug.log in to see if it’s working.

Nothing is popping up as an error in the console.

Here is the code. Ignore anything that’s commented out, as it’s not commented out in my version. It’s just for the sake of posterity.

void OnTriggerEnter(Collider other)
        //if (other.gameObject.CompareTag("Melee"))
        //    PhysicalAttack physicalAttack = other.GetComponent<PhysicalAttack>();
        //    if (physicalAttack.attack == true)
        //    {
        //        physicalAttack.attack = false;
        //        //Debug.Log(physicalAttack.attack);
        //        Damage(physicalAttack.damage);
        //        transform.Translate(0, 0, -5);
        //    }
        else if (other.gameObject.CompareTag("Player") && canAttack)
            Animator anim = gameObject.GetComponent<Animator>();
            //fishHealth fish = other.gameObject.GetComponent<fishHealth>();
            anim.ResetTrigger("Not Attacking");
            //fish.currentPlayerHealth -= 10;
            GetComponent<AudioSource>().clip = Bite;

Here are some screenshots of info from the animator.

enter image description here

enter image description here