Instantly share code, notes, and snippets.

Embed
What would you like to do?
using UnityEngine;
using System;
using System.Collections;
public class Callback {
public static IEnumerator waitForCallback(float waitTime, Action callback) {
yield return new WaitForSeconds(waitTime);
callback();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment