I’m trying to make a transition from idle to slide by pressing left shift but i got this error, here is the code. Please help.
}
private void HandleSlide()
{
if (slide)
{
myAnimator.SetBool ("slide");
}
}
I’m trying to make a transition from idle to slide by pressing left shift but i got this error, here is the code. Please help.
}
private void HandleSlide()
{
if (slide)
{
myAnimator.SetBool ("slide");
}
}
SetBool takes two arguments because it needs to know whether to set it false or true.
So
myAnimator.SetBool("slide", true);
you could also:
myAnimator.SetBool("slide", false);