unity, yield return new WaitForSeconds(waitTime) 在 Time.timeScale=0下卡死
例如下面代码:IEnumeratorf(){Time.timeScale=0; floatwaitTime=2;yieldreturnnewWaitForSeconds(waitTime);Debug.Log(“hi”);}则“hi”永远输不出来。欲在Time.timeScale=0的情况下wait一定时间,可用如下代码:IEnumeratorf(){Time.timeScale=0;floatw