public class Example : MonoBehaviour { IEnumerator Example() { print(Time.time); yield return new WaitForSeconds(5); print(Time.time); } }
阻塞5秒。接下来打印时间。
Unity,如何阻塞当前函数一段时间,布布扣,bubuko.com
Unity,如何阻塞当前函数一段时间
原文:http://www.cnblogs.com/kimmy/p/3622343.html