Created
October 20, 2015 13:11
Revisions
-
robertwahler created this gist
Oct 20, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ // Avoid GC when coroutines wait, instantiate outside of loop WaitForSeconds shortWait = new WaitForSeconds(1.0f); private IEnumerator Run() { while (true) { // do stuff here yield return shortWait; } }