- Home /
Question by
gaia2222 · Jun 03, 2020 at 07:30 PM ·
staticdelaymemory management
Is it a good way for independent function of static IEnumerator?
It would save a lot of count in the memory? Or some suggestion for me thankyou!
public class testt
{
public static IEnumerator testtt(float time, int x,string i)
{
int counter= new int();
counter = 0;
while (counter < x)
{
Debug.Log(i);
//doing something
yield return new WaitForSeconds(time);
counter++;
}
}
}
Comment