Last active
October 12, 2016 08:55
-
-
Save is8r/2ec84692995e561969a2656da01dacb9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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