Exemple #1
0
    IEnumerator updateTimer()
    {
        while (currentTime >= 0)
        {
            yield return(oneSecond);

            currentTime   -= 1;
            timertext.text = floatToString(currentTime);
            src.Play();

            if (currentTime <= 10)
            {
                childtext.gameObject.SetActive(true);
                if (seq.IsComplete())
                {
                    Blink();
                }
            }
        }
        TimeOver();
    }