From 0648c3994e75e469ee10ea71ef8f9d0010bb8811 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期一, 02 二月 2026 19:06:27 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts
---
Main/System/InternalAffairs/GoldRushWorkCell.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Main/System/InternalAffairs/GoldRushWorkCell.cs b/Main/System/InternalAffairs/GoldRushWorkCell.cs
index 7a5667f..ca2408d 100644
--- a/Main/System/InternalAffairs/GoldRushWorkCell.cs
+++ b/Main/System/InternalAffairs/GoldRushWorkCell.cs
@@ -1,4 +1,5 @@
-锘縰sing System.Collections.Generic;
+锘縰sing 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;
}
--
Gitblit v1.8.0