Yield return

Hi im having a hard time understanding the how far the flow of the code backs up when you do a yield return? does the code start from the beginning in void Start() and then run the StartCoroutine(FollowPath()) again? if that is the case how does it know to run the second waypoint in the path list in the foreach statement and not starting over with the first one?

i understand now

A small recommendation, explain what you understood here in the thread for 2 reasons: it helps others that have the same question as you, it helps you understand it even better. When you try to explain things to others you’ll come up with a lot of other questions you’ll have to answer giving you a deeper understanding of things.

1 Like

Privacy & Terms