使用startCoroutine制定倒计时 using UnityEngine; using System.Collections; public class TimerCoroutine : MonoBehaviour { public int second; // Use this for initialization void Start () { StartCoroutine("timeSecond"); } void OnGUI() { GUI.Label(new Rect(…
本文由博主(YinaPan)原创,转载请注明出处:http://www.cnblogs.com/YinaPan/p/Unity_Coroutine.html using UnityEngine; using System.Collections; public class CoroutineTest : MonoBehaviour { void Start () { print("Starting " + Time.time); StartCoroutine(WaitAndPrint(…