In this video, I show an interesting idea of how to improve the way we start coroutines in Unity. This approach allows us to easily check whether or not our coroutine is still running or even dispatch an event once it's finished. Similarly to how AsyncOperations work.
Sources:
gist.github.com/aarthificial/...
Support me on Patreon:
/ aarthificial
Timestamps:
0:00 IEnumerator
1:58 Controlling a coroutine
2:53 Waiting for other coroutines
#unity #unitytips #gamedev
Негізгі бет Taming Coroutines - Unity Tips
Пікірлер: 83