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