1
我寫我的代碼的權利並基於碼(統一文檔)waitforseconds()方法行不通不工作
,但仍然沒有工作,沒有等待,任何幫助!
IEnumerator wait(float waitTime)
{
Debug.Log("Wait"); // write this successfully
yield return new WaitForSeconds(waitTime);
Debug.Log("Waitting"); // not write it , not enter here !!
}
void somefunction()
{
StartCoroutine("wait", Resources.Load<AudioClip>("win").length);
Debug.Log("waiting finished"); // write it directly !
}
可能_Assets/Resouces/win.mp3_找不到。控制檯中有任何錯誤? – Kay
調用Somefunction()開始()然後檢查? –
@Kay不,它存在100% –