hch
2026-02-02 04ffe31b6a2b2fbcfecc83abb44a8aa233f2e53f
54 【淘金】切后台淘金完成 时间显示负数
1个文件已修改
5 ■■■■■ 已修改文件
Main/System/InternalAffairs/GoldRushWorkCell.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/InternalAffairs/GoldRushWorkCell.cs
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
@@ -62,7 +63,7 @@
        {
            if (endTime != 0)
            {
                timeText.text = TimeUtility.SecondsToHMS(endTime - TimeUtility.AllSeconds);
                timeText.text = TimeUtility.SecondsToHMS(Math.Max(0, endTime - TimeUtility.AllSeconds));
                //按原总时长当进度条
                slider.value = (config.NeedSeconds - (endTime - TimeUtility.AllSeconds)) / (float)config.NeedSeconds;
            }