It also looks like perhaps you’re restarting this anytime WanderBool is true??
Why are you even doing it as a coroutine then? Just… do the motion if you’re doing it every frame.
This may also prove helpful:
Coroutines in a nutshell:
Splitting up larger tasks in coroutines:
Coroutines are NOT always an appropriate solution: know when to use them!
“Why not simply stop having so many coroutines ffs.” - orionsyndrome on Unity3D forums
Our very own Bunny83 has also provided a Coroutine Crash Course: