Skip to content

Instantly share code, notes, and snippets.

@todorok1

todorok1/WaitSampleWait.cs Secret

Created Sep 20, 2020
Embed
What would you like to do?
ループの外で作成した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