| | |
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | WeekPartyDayInfoDic.Clear();
|
| | | WeekPartyDayDic.Clear();
|
| | | WeekPartyActionDic.Clear();
|
| | | isOpenNow = false;
|
| | | isPreviewTime = false;
|
| | | }
|
| | |
| | | {
|
| | | GlobalTimeEvent.Instance.secondEvent -= secondEvent;
|
| | | GlobalTimeEvent.Instance.secondEvent += secondEvent;
|
| | | SetRedPoint();
|
| | |
|
| | | }
|
| | |
|
| | | private void secondEvent()
|
| | |
| | | }
|
| | | }
|
| | | GetIsOpen();//判断功能是否开启
|
| | | GetDayNow();
|
| | |
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | Day = 0;
|
| | | }
|
| | | DebugEx.LogError("输出当前的天数" + Day);
|
| | | DayNow = Day;
|
| | | // DebugEx.LogError("输出当前的天数" + Day);
|
| | | if (DayNow != Day && Day<7)
|
| | | {
|
| | | DayNow = Day;
|
| | | if (WeekPartyDayInfoUpdate != null)
|
| | | {
|
| | | WeekPartyDayInfoUpdate();
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | public void SendGetWeekParty(int day, int temdayplateID)//领取周狂欢活动奖励
|
| | |
| | | bool IsBool = IsDayReward(day, type);
|
| | | if (point >= item.NeedPoint && !IsBool)
|
| | | {
|
| | | return RedPointState.Simple;
|
| | | return RedPointState.GetReward;
|
| | | }
|
| | | }
|
| | | for (int i = 0; i < WeekPartyDay.TemplateList.Length; i++)
|
| | |
| | | }
|
| | | if (TaypeNumber > 0 && rewardNum< number)
|
| | | {
|
| | | return RedPointState.Simple;
|
| | | return RedPointState.GetReward;
|
| | | }
|
| | | }
|
| | | }
|