My transition won’t work it just stays on walking animation when I hold shift and w I’m only 13 so this is a struggle for me. using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class running : MonoBehaviour {
public Animator animator;
private bool Running = false;
void Update()
{
if (Input.GetKeyDown(KeyCode.LeftShift) && Input.GetKeyDown(KeyCode.W))
{
Running = true;
animator.SetBool("isRunning", Running);
}
else if (Input.GetKeyUp(KeyCode.LeftShift) && Input.GetKeyUp(KeyCode.W))
{
Running = false;
animator.SetBool("isRunning", Running);
}
}