Player Animations - is a simple script that is designed to control the player’s animations: Idle, Walking, Running. Depending on how you move the joystick, the player will run faster or slower, and the animator will play appropriate animations. You can change it a little at any time and use it differently.
Use Another Animator - allows you to manually select an animator
Animator - link to the animator you want to use
QUESTIONS: 1. How does it work? - UpdateAnimator() method invokes with the movement coefficient value, which is limited to 0-1. For example:
[SerializeField] private PlayerAnimations _playerAnimations;
[SerializeField] private VariableJoystick _joystick;
private void Update()
{
var speedCoefficient = _joystick.Direction.magnitude;
_playerAnimations.UpdateAnimator(speedCoefficient);
}