コード例 #1
0
ファイル: WUIManager.cs プロジェクト: wluluxiu/W
    private IEnumerator CountDown(string key, int countDownTime, System.Action ac = null)
    {
        isCountDowning = true;
        int time = countDownTime;

        while (time > 0)
        {
            SetTextContent(key, HelperUtils.hlpGetCountDownTimeOriginalStringMS(time));
            yield return(new WaitForSecondsRealtime(1f));

            time--;
        }
        SetTextContent(key, "");
        isCountDowning = false;
        StopCountDown(key, ac);
    }