For a Wait animation I used the next code:
```If (velocityx ==0 && Time.timeSinceLevelLoad >= 40)
{
animator.Play("Wait");
}```
I tried stop with this code:
```else if( velocityx ==1 || velocityx ==-1)
{
animator.SetBool("Wait", false);
animator.Setbool("Run", true!;
}```
But I can't stop "Wait" to return idle animation its like "Wait" replaced my "Idle" animation, charachter only can run, and jump, sombody help me, please?
↧