using UnityEngine;
using System.Collections;
public class cor : MonoBehaviour {
// Use this for initialization
void Start () {
StartCoroutine(count());
Debug.Log("start end");
}
IEnumerator count() {
for(int i = 0; i <= 5; i++) {
Debug.Log("yield now begin " + i);
if (i > 3) {
yield return new WaitForSeconds(1);
}
Debug.Log("yield now end " + i);
}
Debug.Log("finish count");
}
// Update is called once per frame
void Update () {
}
}