Skip to content

Instantly share code, notes, and snippets.

@neruca
Created January 11, 2016 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neruca/544e22e94176f283c36f to your computer and use it in GitHub Desktop.
Save neruca/544e22e94176f283c36f to your computer and use it in GitHub Desktop.
Unity Coroutine Example 2
using UnityEngine;
using System.Collections;
public class CoroutineTest : MonoBehaviour {
IEnumerator Start () {
Debug.Log ("CountStart !!");
yield return StartCoroutine (CountFrame1To5 ());
StartCoroutine (CountFrame201To205 ());
Debug.Log ("CountEnd !!");
}
// 以下、処理内容同じため省略
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment