unity 简单倒计时

 if (totalTime <= 0) return;
        nowTime += Time.deltaTime;
        if (nowTime >= 1)
        {
            nowTime = 0;
            totalTime--;
        }
 
        if (totalTime == 0)
        {
        };

 

posted on 2022-11-11 17:13  zqiang0803  阅读(92)  评论(0编辑  收藏  举报

导航