-
@AndrewJacksonZA my point is that you can reproduce one of Unity3D's most powerful features coroutines (docs.unity3d.com/Manual/Coroutines.html) using plain JavaScript generators, which is really exciting to me.
-
@AndrewJacksonZA generators were designed to generate values, but you can take advantage of the fact that they can be paused and resumed to run code across multiple frames for e.g. an animation or other time-based logic