GuildRedPacketManager = {} local this = GuildRedPacketManager -- 默认未检查公会红包 this.isCheck=false function this.Initialize() end -- 检查公会红包红点 function this.CheckGuildRedPacketRedPoint() local list=MyGuildManager.GetMyGuidRedPackage() if list and LengthOfTable(list)>0 then for key, value in pairs(list) do if value and value.num and value.num>0 then return true end end end return false end function this.CheckIsCanGetPackage() if MyGuildManager.GetRedPackageNum()>0 then --Game.GlobalEvent:DispatchEvent(GameEvent.Chat.OnRedPackageNumChanged,true) local aaa=Util.GetGameObject(UIManager.uiNode,"GuildMainCityPanel/ChatTipView/Image") local bbb=Util.GetGameObject(UIManager.uiNode,"MainPanel/ChatTipView/Image") if aaa then aaa.gameObject:SetActive(true) end if bbb then bbb.gameObject:SetActive(true) end return true else -- Game.GlobalEvent:DispatchEvent(GameEvent.Chat.OnRedPackageNumChanged,false) local aaa=Util.GetGameObject(UIManager.uiNode,"GuildMainCityPanel/ChatTipView/Image") local bbb=Util.GetGameObject(UIManager.uiNode,"MainPanel/ChatTipView/Image") if aaa then aaa.gameObject:SetActive(false) end if bbb then bbb.gameObject:SetActive(false) end return false end return false end return this