I want to call a method 10 times, with a time difference of one second. But my method is only beeing called once, when i yield return new WaitForSeconds with a value bigger than 0
My Code:
IEnumerator MyMethod(int number)
{
int i = 0;
while (i < number)
{
//Do something
//yield return new WaitForSeconds(1.0f); -My goal, but not working
yield return new WaitForSeconds(0); - Working
i++;
}
}