| | |
| | |
|
| | | public override void Init()
|
| | | {
|
| | | RedpointCenter.Instance.AddParent(MainRedDot.MainGuildRedpoint, MainRedDot.Store_REDPOINT);
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent += FuncStateChange;
|
| | | TimeMgr.Instance.OnDayEvent += RefreshDay;
|
| | | GuildManager.Instance.EnterOrQuitGuildEvent += EnterOrQuitGuildEvent;
|
| | |
| | | for (int i = 0; i < netPack.ShopIDList.Length; i++)
|
| | | {
|
| | | var config = StoreConfig.Get((int)netPack.ShopIDList[i]);
|
| | | if (config == null)
|
| | | {
|
| | | Debug.LogError("前后端商店数据不一致");
|
| | | continue;
|
| | | }
|
| | | //UnlockType 2 由服务端通知
|
| | | StoreData storeData = new StoreData();
|
| | | storeData.shopId = config.ID;
|
| | |
| | | {
|
| | | if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Store)) return;
|
| | |
|
| | | if (FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Guild) && PlayerDatas.Instance.fairyData.HasFairy)
|
| | | {
|
| | | RedpointCenter.Instance.AddParent(MainRedDot.MainGuildRedpoint, MainRedDot.Store_REDPOINT);
|
| | | }
|
| | | normalRedpoint.state = RedPointState.None;
|
| | | guildRedpoint.state = RedPointState.None;
|
| | |
|