-
DID YOU KNOW: you can't capture the loop variable of a foreach (even breaking it out as a within-scope variable) within a Unity coroutine?
-
(you can get round it by calling out to a method within the coroutine that then contains the foreach or for loop)
-
Bet you're glad you learnt that, huh?