| | |
| | | guildListScroller.OnRefreshCell -= RefreshCell; |
| | | PlayerDatas.Instance.fairyData.OnRefreshFairyInfo -= OnRefreshFairyInfo; |
| | | |
| | | var win = UIManager.Instance.GetUI<MainWin>(); |
| | | if (win) |
| | | win.RestoreFuncBtn(); |
| | | |
| | | UIManager.Instance.GetUI<MainWin>()?.RestoreFuncBtn(); |
| | | |
| | | } |
| | | |
| | | void OnRefreshFairyInfo() |
| | | { |
| | | //当前界面下有刷新自家的公会数据,说明一定是加入了公会,需主动跳转到公会界面 |
| | | CloseWindow(); |
| | | var win = UIManager.Instance.GetUI<MainWin>(); |
| | | if (win) |
| | | win.ClickFunc(4); |
| | | UIManager.Instance.GetUI<MainWin>()?.ClickFunc(4); |
| | | } |
| | | |
| | | void Display() |
| | |
| | | noGuildTf.SetActive(false); |
| | | guildListScroller.SetActive(true); |
| | | |
| | | var startCount = guildListScroller.GetNumberOfCells(); |
| | | var startCount = guildListScroller.GetCellTotalCount(); |
| | | if (startCount > GuildManager.Instance.pageIndexList.Count) |
| | | { |
| | | guildListScroller.Refresh(); |