Not sure if I posted this in the right forum.
My issue is that whenever I hold down my right mouse button my character stops moving but it still plays the walk animation. Is it due to this script being too simple?
function Update ()
{
if (Input.GetAxis(“Vertical”) > 0.2)
animation.CrossFade (“walk”);
else
animation.CrossFade (“idle”);
}
Or is it due to some other weird issue? No matter what I have tried it has all failed.