Animator Controller true/false idle/run

Ok you wizards!

I’m using an animation controller to make a character go from idle to a run state using a transition that is set-off by a viable bool called ‘Run’

i can get the character to run correctly with C# when this is set to true …

anim.SetBool("Run", true);

…but i can get him to stop when i make it false when i use a yield coroutine of 5 seconds…

anim.SetBool("Run", false);

Any ideas?

Thanks

Based off:

I’m using an animation controller to
make a character go from idle to a run
state using a transition that is
set-off by a viable bool called ‘Run’

You also need to create a transition from run state to idle state so there will be two transitions i.e. from idle to run and from run to idle.