소스 검색

茶话会刷新加判断

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();