ループの外で作成したWaitForSecondsのオブジェクトを使います。
// ループの外で作成したWaitForSecondsのオブジェクトを使います。 | |
var wait = new WaitForSeconds(1.0f); | |
for (int i = 0 ; i < 1000 ; i++) | |
{ | |
yield return wait; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment