From 26c92e719b72b6faa4b5d9188654975ad7fde02d Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期五, 24 八月 2018 11:00:17 +0800
Subject: [PATCH] 2466  【前端】分包优化

---
 System/AssetVersion/InGameDownLoadProgress.cs |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/System/AssetVersion/InGameDownLoadProgress.cs b/System/AssetVersion/InGameDownLoadProgress.cs
index 47da693..5df103a 100644
--- a/System/AssetVersion/InGameDownLoadProgress.cs
+++ b/System/AssetVersion/InGameDownLoadProgress.cs
@@ -107,11 +107,15 @@
         {
             m_ProgressSlider.fillAmount = InGameDownLoad.Instance.progress;
 
-            if (m_ProgressText != null)
+            if (InGameDownLoad.Instance.state == InGameDownLoad.State.DownLoad)
             {
-                var progress = Mathf.RoundToInt(InGameDownLoad.Instance.progress * 100);
-                m_ProgressText.text = StringUtility.Contact(Mathf.Clamp(progress, 0, 99), "%");
+                if (m_ProgressText != null)
+                {
+                    var progress = Mathf.RoundToInt(InGameDownLoad.Instance.progress * 100);
+                    m_ProgressText.text = StringUtility.Contact(Mathf.Clamp(progress, 0, 99), "%");
+                }
             }
+
         }
 
         private void OpenInGameDownloadWin()

--
Gitblit v1.8.0