Skip to content

Instantly share code, notes, and snippets.

@neruca neruca/blog20150111-2 Secret
Created Jan 11, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.