コード例 #1
0
    IEnumerator RevivalCountDown(float sec)
    {
        HudPanel.SetActiveUI(false);
        HudPanel.SetCountDownActive(true);
        while (0 < sec)
        {
            int s = (int)sec;
            HudPanel.SetCountDown(s);
            yield return(new WaitForSeconds(1f));

            sec -= 1;
        }

        HudPanel.SetActiveUI(true);
        HudPanel.SetCountDownActive(false);
        yield return(null);
    }