public uint Execute(PacketDistributed ipacket) { GC_NEWSERVERAWARD_DATA packet = (GC_NEWSERVERAWARD_DATA )ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic GameManager.gameManager.PlayerDataPool.HandlePacket(packet); return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }
public void HandlePacket(GC_NEWSERVERAWARD_DATA packet) { m_nNewServerDays = packet.Day; // m_nStartTime = packet.StartTime; // m_nEndTime = packet.EndTime; for (int i = 0; i < packet.flagCount && i < MaxNewServerDays; i++) { int nFlag = packet.GetFlag(i); if (nFlag == 0) { m_bNewServerAwardFlag[i] = false; } else { m_bNewServerAwardFlag[i] = true; } } GotExtraFlag = packet.GetFlag(7) == 0 ? false : true; // 通知UI按钮 显示提醒 if (null != FunctionButtonLogic.Instance()) { FunctionButtonLogic.Instance().UpdateButtonAwardTips(); } if (null != AwardLogic.Instance() && AwardLogic.Instance().m_NewServerAwardRoot != null) { AwardLogic.Instance().UpdateTip(); if (AwardLogic.Instance().m_NewServerAwardRoot.gameObject.activeSelf) { AwardLogic.Instance().m_NewServerAwardRoot.ButtonNewServerAward(); AwardLogic.Instance().m_NewServerAwardRoot.PlayEffect(m_nNewServerDays); //if (AwardLogic.Instance().m_NewServerAwardRoot.YellowDotVisibal()) //{ //} } } if (null != QianDaoController.Instance()) { } }