Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private IEnumerator DoSomething()
- {
- // doing something
- // waits 5 seconds
- yield return new WaitForSeconds(5);
- // do something else
- }
- StartCoroutine(DoSomething());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement