Browse Source

战斗卡死

zhaoyang 2 years ago
parent
commit
2e82b381ef

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

@@ -14,6 +14,7 @@ namespace GFGGame
         private GameObject _sceneObject;
         private FightData roleData;
         private int _partId;//当前评分part
+        private int _curIndex;//当前评分index
         private int _score;//当前总分数
         private int _skillScore = 0;//当前卡牌技能分
         private int _partScore = 0;//当前部件分+技能评分(_skillScore)
@@ -208,6 +209,7 @@ namespace GFGGame
             _currentTime = BeginTime.PART_ALL_FIGHT_BEGIN;
             // _stopFight = false;
             _partId = FightScoreCfgArray.Instance.dataArray[0].id;
+            _curIndex = 0;
             _score = 0;
             _skillScore = 0;//技能附加分
             _mainScore = ScoreSystemData.Instance.GetMainScore(roleData);
@@ -216,7 +218,7 @@ namespace GFGGame
 
             if (GuideDataManager.IsGuideFinish(ConstGuideId.START_FIGHT) > 0)
             {
-                _ui.m_comClick.target.touchable = true;
+                // _ui.m_comClick.target.touchable = true;
                 _ui.m_btnBack.visible = true;
                 Timers.inst.Add(0.5f, 1, SkillScoreStart);//评分结束
             }
@@ -269,7 +271,9 @@ namespace GFGGame
         }
         private void PartScoreStart()
         {
+            if (_curIndex == _partId) return;
             _ui.m_comClick.target.touchable = !FightDataManager.Instance.autoPlay;
+            _curIndex = _partId;
 
             Vector2 pos = (_ui.m_comClick.target.GetChild("grh_" + (_partId - 1)).asGraph).xy;
             float x = 0f;