RhinoFreak 发表于 2022-1-26 09:39

unity Coroutine和Invoke

Invoke

RepeatingInvoke("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]
查看完整版本: unity Coroutine和Invoke