The easiest way to control an animation playback by script in Unity : r/gamedev
Unity Visual Studio Script - Dialogue Finish AnimationPictured above is a snippet of the code written in the Visual Studio editor that controls the dialogue and speaker animation functionality. I utilized many
animation - Change motion using script in Unity Editor - Stack Overflow