Very strange behavior using UI button on click ()

SOLVED: Updated Unity to version 2017.2

When adding more than 1 task to the execution list of UI button On Click() manager, the execution of those tasks gets unpredictable behavior. My countdown script counts twice as fast when there is more than one task added to that list (se the attached image). When I remove one task, the code runs as it should (prints the countdown to the screen every second 5…4…3…2…1 etc). Unity Bug?

   public IEnumerator Countdown()
    {
        while (timeLeft > 0)
        {
            yield return new WaitForSeconds(1.0f);
            countText.text = timeLeft.ToString("f0");
            timeLeft--;         
        }
    }

    public void StartCountDown()
    {
        StartCoroutine("Countdown");
    }

Never heard of that, nor experienced it. That would be pretty weird, if that’s the only change.

Well, try it yourself and you’ll see what I mean.

I tried it, did not get the same result. Probably something else happening?

Try logging in your StartCoroutine and check that it’s only started once.

Tested in Unity 2017.2.0p1 and works the same with multiple or single behaviors. Tried it with 1, 2, and 3 OnClick and it all did the same.

SOLVED: Updated Unity to version 2017.2

Good to know. I was wondering if it might have been a bug in a certain version, as that sometimes happens. Glad the update fixed it.