Пример #1
0
    // 게임 시간 대기
    private IEnumerator CoWaitForGame(int num)
    {
        Time.timeScale = 0;
        int count = num;

        isReady = false;

        yield return(new WaitForSecondsRealtime(1.0f));

        gameUIManager.CountUIUpdate(count);
        gameUIManager.SetShow(gameUIManager.countText.gameObject);

        while (count > 0)
        {
            gameUIManager.CountUIUpdate(count--);
            yield return(new WaitForSecondsRealtime(1.0f));
        }

        gameUIManager.SetHide(gameUIManager.countText.gameObject);
        Time.timeScale = 1;
        isReady        = true;
    }