Exemplo n.º 1
0
    IEnumerator DoTimer()
    {
        while (cDuration <= duration)
        {
            yield return(new WaitForSeconds(refreshRate));

            cDuration += refreshRate;
            UpdateBar();
        }
        UpdateBar();
        belongs.FinishTimer();
    }