unity Coroutine和Invoke
InvokeRepeatingInvoke("XXX", float time, float repeatTime);Invoke("XXX", float time);private void XXX(){//代码}Coroutine
StartCoroutine("XXX", float value);IEnumerator XXX(){ yield return;yield return null;yield return new WaitForSeconds(float time);yield return new WaitForEndOfFrame(float time);}
页:
[1]