延时的两种方法(带参数和不带参数)

  StartCoroutine(Test(2));     IEnumerator Test(int a)     {         yield return new WaitForSeconds(2);//等待两秒         Debug.Log("second");         yield return 10;//等待一帧         Debug.Log("10");    
相关文章
相关标签/搜索