فهرست منبع

茶话会刷新加判断

huangxiaoyue 1 سال پیش
والد
کامیت
56dca23a9b
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      GameClient/Assets/Game/HotUpdate/Views/League/LeagueTeaPartyView.cs

+ 1 - 2
GameClient/Assets/Game/HotUpdate/Views/League/LeagueTeaPartyView.cs

@@ -54,7 +54,7 @@ namespace GFGGame
             itemObj.m_iconRole.onClick.Add(OnBtnIconRoleClick);
             itemObj.m_txtRoleName.text = teapartyRoleCfg[index].name;
             var roleContainerList = LeagueDataManager.Instance.RoleContainerList;
-            if (roleContainerList != null)
+            if (roleContainerList != null && roleContainerList.Count > 0)
             {
                 itemObj.m_txtMaxValue.text = roleContainerList[index].MaxScore.ToString();
                 itemObj.m_txtNumber.text = roleContainerList[index].PerNum.ToString();
@@ -109,7 +109,6 @@ namespace GFGGame
             }
         }
         
-
         protected override void OnHide()
         {
             base.OnHide();