Animation in Unity runs through the Animator component, a state machine that decides which clip plays and how it blends into the next one. Your code never plays clips directly. It sets parameters, and the Animator Controller turns those into transitions. That separation is what keeps character logic and animation data from tangling as a project grows.