From 4f34d6ed42207e85accca57aa7cabf43ed70b186 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Thu, 1 Jul 2021 18:12:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A5=9E=E5=B0=86=E6=9D=A5=E6=BA=90=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=97=B6=E6=89=93=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/Modules/Player/PlayerManager.lua | 2 ++ .../~Lua/Modules/Popup/RewardItemSingleShowPopup.lua | 2 ++ .../~Lua/Modules/RoleInfo/RoleUpStarLayout.lua | 6 ++++++ 3 files changed, 10 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua b/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua index a9a8c13bd8..6b5ed18cc6 100644 --- a/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua @@ -46,6 +46,8 @@ this.dailyRedPack = 0 this.RewardItemSingleShowPopupIsRoleUpStarLayout = false + +this.RewardItemSingleShowPopupIsRoleUpStarLayout2 = false local update = function() local dt = Time.unscaledDeltaTime this.serverTime = this.serverTime + dt diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua index 53e3de9bb1..d982f0e4e0 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua @@ -47,10 +47,12 @@ function RewardItemSingleShowPopup:BindEvent() Util.AddClick(this.BtnBack, function() PlaySoundWithoutClick(SoundConfig.Sound_UICancel) + PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 = false self:ClosePanel() end) Util.AddClick(this.btnClose, function() PlaySoundWithoutClick(SoundConfig.Sound_UICancel) + PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 = false self:ClosePanel() end) diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua index 96dece4b31..e4351cad81 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua @@ -71,6 +71,7 @@ end function RoleUpStarLayout:BindEvent() Util.AddOnceClick(this.heroSource, function() PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout = true + PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 = true UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,curHeroData.heroConfig.Id) end) --升星 @@ -101,6 +102,11 @@ end function RoleUpStarLayout:OnShow() self.gameObject:SetActive(true) + if PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 then + PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout = true + PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 = true + UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,curHeroData.heroConfig.Id) + end end function RoleUpStarLayout:SetData(_sortinglayer,_parent,_curHerodata,_isUpZhen,_heroDatas)