public void SwitchAllWhenPopUIShow(bool isShow) { if (MissionDialogAndLeftTabsLogic.Instance()) { MissionDialogAndLeftTabsLogic.Instance().PlayTween(!isShow); } if (TargetFrameLogic.Instance()) { TargetFrameLogic.Instance().PlayTween(!isShow); } if (FunctionButtonLogic.Instance()) { FunctionButtonLogic.Instance().PlayTween(!isShow); } if (ExpLogic.Instance()) { ExpLogic.Instance().PlayTween(!isShow); } if (ChatFrameLogic.Instance()) { ChatFrameLogic.Instance().PlayTween(!isShow); } if (SkillBarLogic.Instance()) { SkillBarLogic.Instance().PlayTween(!isShow); } if (PlayerHitsLogic.Instance()) { PlayerHitsLogic.Instance().PlayTween(!isShow); } if (RechargeBarLogic.Instance()) { RechargeBarLogic.Instance().PlayTween(!isShow); } if (!isShow) { if (JoyStickLogic.Instance()) { JoyStickLogic.Instance().CloseWindow(); } } else { if (JoyStickLogic.Instance()) { JoyStickLogic.Instance().OpenWindow(); } } }
public void RefreshVIPTips() { m_VipTips.gameObject.SetActive(GameManager.gameManager.PlayerDataPool.IsShowVipTip); if (GameManager.gameManager.PlayerDataPool.IsShowVipTip) { GameManager.gameManager.PlayerDataPool.IsShowVipTip = false; if (RechargeBarLogic.Instance() != null) { RechargeBarLogic.Instance().RefreshVIPTips(); } } }
// 更新功能CD提醒图标,5秒一更新 public void UpdateFunctionCD() { UpdateRemainNum(); if (null != MenuBarLogic.Instance()) { MenuBarLogic.Instance().UpdateBelleTip(); MenuBarLogic.Instance().UpdatePartnerTip(); MenuBarLogic.Instance().UpdateSkillTip(); MenuBarLogic.Instance().UpdateSystemCountTip(); MenuBarLogic.Instance().UpdateRoleCountTip(); MenuBarLogic.Instance().UpdateFellowRedTip(); } if (RechargeBarLogic.Instance() != null) { RechargeBarLogic.Instance().UpdateChargeTip(); } }
public uint Execute(PacketDistributed ipacket) { GC_TODAY_FIRST_LOGIN packet = (GC_TODAY_FIRST_LOGIN)ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic if (GameManager.gameManager.PlayerDataPool != null) { GameManager.gameManager.PlayerDataPool.OnTodayFirstLogin(); } if (GameManager.gameManager.PlayerDataPool.IsServerFlagOpen(SERVER_FLAGS_ENUM.FLAG_VIP)) { if (RechargeBarLogic.Instance() != null) { RechargeBarLogic.Instance().RefreshVIPTips(); } if (VipRootLogic.Instance() != null) { VipRootLogic.Instance().RefreshVIPTips(); } } // if (GlobalData.IsHongBaoOpen()) // { // if (FunctionButtonLogic.Instance() != null) // { // FunctionButtonLogic.Instance().UpdateFestivalTip(); // } // if (FestivalController.Instance() != null) // { // FestivalController.Instance().UpdateHongBaoTip(); // } // } // if (GameManager.gameManager.PlayerDataPool.IsServerFlagOpen(SERVER_FLAGS_ENUM.FLAG_LOVERFLOWER)) // { // if (FunctionButtonLogic.Instance() != null) // { // FunctionButtonLogic.Instance().UpdateFestivalTip(); // } // if (FestivalController.Instance() != null) // { // FestivalController.Instance().UpdateLoverFlowerTip(); // } // } // if (GameManager.gameManager.PlayerDataPool.IsServerFlagOpen(SERVER_FLAGS_ENUM.FLAG_LOVERTHING)) // { // if (FunctionButtonLogic.Instance() != null) // { // FunctionButtonLogic.Instance().UpdateFestivalTip(); // } // if (FestivalController.Instance() != null) // { // FestivalController.Instance().UpdateLoverThingTip(); // } // } return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }