unity, StartCoroutine and StopCoroutine

时间:2023-03-09 02:21:07
unity, StartCoroutine and StopCoroutine

startCoroutine("func",1.0f)可以用stopCoroutine("func")来停。

startCoroutine(func(1.0f))不能用stopCoroutine("func")来停。

参考:

http://forum.unity3d.com/threads/stopcoroutine-not-working.32609/

http://answers.unity3d.com/questions/891122/how-to-stop-coroutine-with-parameters.html