zhaoyang hace 3 años
padre
commit
1a95743444

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

@@ -9,6 +9,7 @@ namespace GFGGame
 {
     public class StoryLevelInfoView : BaseWindow
     {
+        private const int _quicklyStarCount = 2;//达到2星可快速挑战
         private UI_StoryLevelInfoUI _ui;
 
         private int _levelID;
@@ -238,8 +239,8 @@ namespace GFGGame
             if (InstanceZonesDataManager.CheckLevelPass(_levelID))
             {
                 _bonusList = StoryBonusDataCache.GetBonusList(_levelID, false, true);
-                _ui.m_groupPass.visible = true;
-                _ui.m_groupUnpass.visible = false;
+                _ui.m_groupPass.visible = InstanceZonesDataManager.GetStarCountHistory(_levelID) >= _quicklyStarCount;
+                _ui.m_groupUnpass.visible = InstanceZonesDataManager.GetStarCountHistory(_levelID) < _quicklyStarCount;
                 UpdateBtnFightTimes();
             }
             else