[unity] The use of C# coroutine IEnumerator (below)


1. How to use

1. Delayed execution

In Unity, using coroutines can easily implement delayed execution, that is, execute a certain code block after a certain period of time. For example, we can use the yield return new WaitForSeconds method to implement delayed execution. The specific code is as follows:

IEnumerator Dela

Guess you like

Origin blog.csdn.net/qq_35079107/article/details/130409076