Skip to content

Instantly share code, notes, and snippets.

View Test
oleyb / RunAsyncSequence.cs
Last active Aug 29, 2015
Unity3D extension method for being able to call an array of async code blocks in sequence.
View RunAsyncSequence.cs
public delegate float SequenceFunc();
public static void RunAsyncSequence(this MonoBehaviour obj, params SequenceFunc[] callbacks)
if (callbacks.Length > 0) {
private static IEnumerator ExecFuncChain(SequenceFunc[] callbacks)