| | |
| | | {
|
| | | m_storeModel.storeFuncType = StoreFunc.ToolStore;
|
| | | m_storeModel.RefreshTCBPlayerDataEvent += OnRefreshPlayerInfo;
|
| | | PlayerDatas.Instance.fairyData.OnRefreshFairyInfo += CreateCell;
|
| | | m_storeModel.RefreshBuyShopLimitEvent += CreateCell;
|
| | | PlayerDatas.Instance.fairyData.OnRefreshFairyInfo += RefreshShopDisplay;
|
| | | m_storeModel.RefreshBuyShopLimitEvent += RefreshShopDisplay;
|
| | | CreateCell();
|
| | | RefreshUI();
|
| | | }
|
| | |
| | | {
|
| | | _storeModel.fairyStoreJumpShopId = 0;
|
| | |
|
| | | m_storeModel.RefreshBuyShopLimitEvent -= CreateCell;
|
| | | m_storeModel.RefreshBuyShopLimitEvent -= RefreshShopDisplay;
|
| | | m_storeModel.RefreshTCBPlayerDataEvent -= OnRefreshPlayerInfo;
|
| | | PlayerDatas.Instance.fairyData.OnRefreshFairyInfo -= CreateCell;
|
| | | PlayerDatas.Instance.fairyData.OnRefreshFairyInfo -= RefreshShopDisplay;
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|
| | |
| | | RefreshUI();
|
| | | }
|
| | |
|
| | | private void RefreshShopDisplay()
|
| | | {
|
| | | _shopCtrl.m_Scorller.RefreshActiveCellViews();
|
| | | }
|
| | |
|
| | | private void CreateCell()
|
| | | {
|
| | | shopId = 0;
|