Browse Source

修改寻起访胜的剩余时间显示:当时间大于1min时,少显示1s

leiyasi 1 year ago
parent
commit
aadc727c42
1 changed files with 6 additions and 0 deletions
  1. 6 0
      GameClient/Assets/Game/HotUpdate/Views/Travel/TravelView.cs

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Views/Travel/TravelView.cs

@@ -130,6 +130,12 @@ namespace GFGGame
                 UpdateView();
             }
 
+            // 如果大于1分钟,则显示上少1s
+            if(endTime - curTime > 60000)
+            {
+                endTime -= 1000;
+            }
+
             _ui.m_txtTime.text = string.Format("大约{0}后归来", TimeUtil.FormattingTime(curTime, endTime));
         }