public void HandlePacket(GC_NEW7DAYONLINEAWARD_DATA packet) { m_nNew7DayOnlineAwardID = packet.NewOnlineAwardID; New7DayLeftTime = packet.NewleftTime; m_bNew7DayOnlineAwardStart = packet.IsStart > 0; New7DayBeginTime = Time.realtimeSinceStartup; if (New7DayGetList == null) { m_New7DayGetList = new List <int>(); } New7DayGetList.Clear(); New7DayGetList.AddRange(packet.flagList); // 通知UI按钮 显示提醒 /*if (null != FunctionButtonLogic.Instance()) * { * FunctionButtonLogic.Instance().UpdateButtonAwardTips(); * } * if (null != AwardLogic.Instance()) * { * AwardLogic.Instance().UpdateTip(); * if (AwardLogic.Instance().m_New7DayOnlineAwardRoot.gameObject.activeSelf) * { * AwardLogic.Instance().m_New7DayOnlineAwardRoot.ButtonOnlineAward(); * AwardLogic.Instance().m_New7DayOnlineAwardRoot.PlayEffect(m_nNew7DayOnlineAwardID); * } * }*/ }
public uint Execute(PacketDistributed ipacket) { GC_NEW7DAYONLINEAWARD_DATA packet = (GC_NEW7DAYONLINEAWARD_DATA )ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic GameManager.gameManager.PlayerDataPool.HandlePacket(packet); if (RewardOnlineController.Instance() != null) { RewardOnlineController.Instance().Init(); } return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }