Advertisement
LittleAngel

Wait for coroutine

Sep 13th, 2011
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. IEnumerator WaveController () {
  2. yield return new WaitForSeconds (1);
  3. yield return Wave01 ();
  4. Debug.Log ("wave 01 done");
  5. }
  6.  
  7. IEnumerator Wave01 () {
  8. SomeCode();
  9. SomeYieldInstruction();
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement