Unity關閉協程,沒法馬上殺死協程的問題

使用StopCoroutine(「名字」)或StopCoroutine(方法名),沒法馬上殺死協程,仍是會執行到結尾。web StopCoroutine()用string參數,只能夠關閉StartCoroutine()方法使用相同string參數開啓的攜程。svg 須要建立協程變量,並在StartCorutine(),開啓協程時賦值。 StopCoroutine(協程變量名),便可殺死此協程。co
相關文章
相關標籤/搜索