U3D之Yield协程的使用

1.在c#中使用 ①首选须要定义一个返回值为IEnumerator的协程函数html IEnumerator Do(){ Debug.Log("Do 1"); yield return 0; //下面的代码延时到下一帧的update以后 Debug.Log("Do 2"); } ②使用StartCoroutine函数调用协程函数web void Start () {
相关文章
相关标签/搜索