IEnumerator while(count>0) loop iterating an extra time.
IEnumerator ShowStatusChanges(Monmon mon)
{
while (monmon.StatusChanges.Count > 0)
{
//the loop is running while count = 0
var message = monmon.StatusChanges.Dequeue();
yield return dialogBox.TypeDialog(message);
}
}
thanks in advance to any advice.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613053730im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity coding problem 1 Answer
Error message with script 2 Answers
c# cods spaceship 0 Answers
my script has been breaking 0 Answers