I think you could put delegates into use here, [take a look at this question and the accepted answer][1].
[1]: http://answers.unity3d.com/questions/786865/can-you-check-a-boolean-in-a-coroutine.html
↧