How i can change animation speed of “idle” to 0.5x here if I use character motor?
if (grounded) {
if (Input.GetKey("a"))
{
player.animation.Play("walk");
}
else if (Input.GetKey("d"))
{
player.animation.Play("walk");
}
else
{
player.animation.Play("idle");
}
velocity.y = Mathf.Min(velocity.y, 0);
}