| | |
| | | scroller.OnRefreshCell += OnRefreshCell; |
| | | StoreModel.Instance.RefreshShopEvent += Show; |
| | | StoreModel.Instance.RefreshBuyShopLimitEvent += Show; |
| | | TimeMgr.Instance.OnDayEvent += OnDayEvent; |
| | | |
| | | Display(); |
| | | } |
| | |
| | | scroller.OnRefreshCell -= OnRefreshCell; |
| | | StoreModel.Instance.RefreshShopEvent -= Show; |
| | | StoreModel.Instance.RefreshBuyShopLimitEvent -= Show; |
| | | TimeMgr.Instance.OnDayEvent -= OnDayEvent; |
| | | } |
| | | |
| | | void OnDayEvent() |
| | | { |
| | | Display(); |
| | | } |
| | | |
| | | void Display() |
| | |
| | | |
| | | int jumpIndex = -1; |
| | | scroller.Refresh(); |
| | | var list = StoreModel.Instance.storeTypeDict[(int)StoreFunc.HeroSkin]; |
| | | var list = StoreModel.Instance.GetTimeValidStoreDatas(StoreFunc.HeroSkin); |
| | | for (int i = 0; i < list.Count; i++) |
| | | { |
| | | if (i % 4 == 0) |