So heres the deal , my sprint animation plays for about half a second then goes back to walk/idle animation , and i want to keep it playing UNTIL i let go of shift+forward … im not a pro at scripting and i’ve looked a few tutorials and they arent helping .
function Update()
{
if(Input.GetButtonDown("sprint"))
{
isSprinting = true;
animation.Play("sprintUMP");
}
else
{
if(Input.GetButtonUp("sprint"))
{
isSprinting = false;
animation.Stop("sprintUMP");
}
}
}