| | |
| | | RefreshFlyHead(); |
| | | RefreshConn(); |
| | | |
| | | if (HeroManager.Instance.GetHeroCount() == 0) |
| | | { |
| | | heroListEmpty.SetActive(true); |
| | | heroListScroller.SetActive(false); |
| | | } |
| | | else |
| | | { |
| | | heroListEmpty.SetActive(false); |
| | | heroListScroller.SetActive(true); |
| | | } |
| | | RefreshEmptyTip(); |
| | | |
| | | showConnTipToggleBtn.isOn = isToggleOn; |
| | | |
| | |
| | | HeroUIManager.Instance.selectTeamPosCountry = country; |
| | | HeroUIManager.Instance.SortHeroOnTeamList(); |
| | | CreateScroller(); |
| | | RefreshEmptyTip(); |
| | | } |
| | | |
| | | void RefreshEmptyTip() |
| | | { |
| | | if (HeroUIManager.Instance.heroOnTeamSortList.Count <= 0) |
| | | { |
| | | heroListEmpty.SetActive(true); |
| | | heroListScroller.SetActive(false); |
| | | } |
| | | else |
| | | { |
| | | heroListEmpty.SetActive(false); |
| | | heroListScroller.SetActive(true); |
| | | } |
| | | } |
| | | |
| | | void OnRefreshCell(ScrollerDataType type, CellView cell) |