예제 #1
0
    IEnumerator ArenaTime()
    {
        while (true)
        {
            yield return(new WaitForSeconds(1f));

            timeLeft--;

            if (timeLeft == 0)
            {
                scene.ArenaEnd();
                StopCoroutine("ArenaTime");
            }
        }
    } //countdown timer