unity get stuck on an animation from animator code example
Example: unity animator trigger stuck
public void PlayAnimation(string animationName){ if (!_animator.GetCurrentAnimatorStateInfo(0).IsName(animationName)) _animator.SetTrigger(animationName); }