StartCoroutine(Test(2));
==========================================================
IEnumerator Test(int a)
{
yield return new WaitForSeconds(2);//等待两秒
Debug.Log("second");
yield return 10;//等待一帧
Debug.Log("10");
yield return 1;//等待一帧
Debug.Log("1");
yield return 0;//等待一帧
Debug.Log("0");
yield return null;//等待一帧
Debug.Log("null");
}
==========================================================
Invoke