Skip to content

Instantly share code, notes, and snippets.

Brian Oley oleyb

Block or report user

Report or block oleyb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Test
0xfC05C304580538657219970352ece0151A3814c2
@oleyb
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) {
obj.StartCoroutine(ExecFuncChain(callbacks));
}
}
private static IEnumerator ExecFuncChain(SequenceFunc[] callbacks)
You can’t perform that action at this time.