-
-
Save neruca/544e22e94176f283c36f to your computer and use it in GitHub Desktop.
Unity Coroutine Example 2
This file contains 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
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