Browse Source

战斗表现

zhaoyang 3 years ago
parent
commit
e203bf4569

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Controller/ErrorCodeController.cs

@@ -42,7 +42,7 @@ namespace GFGGame
             }
             else if (ErrorCodeCfgArray.Instance.GetCfg(errorCode) != null)
             {
-                PromptController.Instance.ShowFloatTextPrompt(errorCode.ToString() + ErrorCodeCfgArray.Instance.GetCfg(errorCode).tips);
+                PromptController.Instance.ShowFloatTextPrompt(ErrorCodeCfgArray.Instance.GetCfg(errorCode).tips);
                 ET.Log.Error("errorCode" + errorCode.ToString());
                 return true;
             }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetScoreView.cs

@@ -279,7 +279,7 @@ namespace GFGGame
             _ui.m_proScore.m_txtMineScore.text = string.Format("{0}{1}", RoleDataManager.roleName, (int)_score);// ((int)_score).ToString();
             _ui.m_proScore.m_comBar.m_imgAni.visible = true;
 
-            double proportion = _score / (_score + _targetScore);
+            double proportion = (_score + _targetScore) > 0 ? _score / (_score + _targetScore) : 0;
             float width = (float)(proportion * _ui.m_proScore.target.width);
 
             GTween.To(_ui.m_proScore.m_comBar.target.width, width, 0.5f).SetTarget(_ui.m_proScore.m_comBar).OnUpdate((GTweener t) =>