| | |
| | | private void RefreshStoreEffect()
|
| | | {
|
| | | storeDesBtn.gameObject.SetActive(false);
|
| | | int limitLv = int.Parse(Config.Instance.Get<FuncConfigConfig>("MallPush").Numerical1);
|
| | | if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Store)
|
| | | || PlayerDatas.Instance.baseData.LV < limitLv)
|
| | | || PlayerDatas.Instance.baseData.LV < storeModel.storeTrailerLv
|
| | | || !storeModel.IsNewDay(storeModel.StoreEffectRecord_Key))
|
| | | return;
|
| | |
|
| | | List<StoreConfig> shoplist = ModelCenter.Instance.GetModel<StoreModel>().shoplist;
|
| | | if (shoplist.Count > 0 && !m_StoreEffect.IsPlaying)
|
| | | var storeDatas = storeModel.TryGetStoreDatas((int)StoreFunc.WeekStore);
|
| | | if (storeDatas != null
|
| | | && storeDatas.Count > 0 |
| | | && !m_StoreEffect.IsPlaying)
|
| | | {
|
| | | if (isNeedTip)
|
| | | {
|
| | |
| | | }
|
| | | m_StoreEffect.Play();
|
| | | }
|
| | | else if (shoplist.Count <= 0 && m_StoreEffect.IsPlaying)
|
| | | else
|
| | | {
|
| | | m_StoreEffect.StopImediatly();
|
| | | }
|