神将来源返回时打开
parent
21033f3260
commit
4f34d6ed42
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue