Skip to content

Instantly share code, notes, and snippets.

@is8r
Last active October 12, 2016 08:55
Show Gist options
  • Save is8r/2ec84692995e561969a2656da01dacb9 to your computer and use it in GitHub Desktop.
Save is8r/2ec84692995e561969a2656da01dacb9 to your computer and use it in GitHub Desktop.
void Start()
{
Coroutine coroutine = StartCoroutine(DelayMethod(1.0f, () => {
Debug.Log("StartCoroutine");
}));
}
private IEnumerator DelayMethod(float waitTime, Action action)
{
yield return new WaitForSeconds(waitTime);
action();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment