瀏覽代碼

双人战斗分数同步

zhaoyang 3 年之前
父節點
當前提交
45d5f2ddb1
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetScoreView.cs

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

@@ -298,8 +298,8 @@ namespace GFGGame
         {
             int partId = FightScoreCfgArray.Instance.dataArray[_index].id;
             double partScore = ScoreSystemData.Instance.GetPartItemScore(partId);
-            _ui.m_comMineCircle.m_txtCount.text = ((int)partScore).ToString();
-            _score += (partScore + _skillScore);
+            _ui.m_comMineCircle.m_txtCount.text = ((int)Math.Round(partScore)).ToString();
+            _score += (int)Math.Round((partScore + _skillScore)); ;
             // Debug.Log("zoya: " + "partScore:" + partScore + "_skillScore: " + _skillScore + " _score:" + _score);
             // Debug.Log("zoya: " + (int)Math.Round(_score));
             EquipDataCache.cacher.totalScore = (int)Math.Round(_score);
@@ -309,7 +309,7 @@ namespace GFGGame
             StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(_levelCfg.fightID);
             double targetScore = fightCfg.targetPartsScoreArr[_index] * ConstScoreSystem.PART_SCORE;
             // Debug.Log("targetScore:" + targetScore);
-            _ui.m_comTargetCircle.m_txtCount.text = ((int)targetScore).ToString();
+            _ui.m_comTargetCircle.m_txtCount.text = ((int)Math.Round(targetScore)).ToString();
             _targetScore += targetScore;
             EquipDataCache.cacher.npcTotalScore = (int)Math.Round(_targetScore);