【灵兽系统】召唤修改

jiaoyangna 2020-10-26 17:14:24 +08:00
parent 37259287a4
commit db98590cf3
3 changed files with 11 additions and 11 deletions

View File

@ -126,17 +126,16 @@ function PokemonSingleResultPanel:TenOpenPanel()
end
function PokemonSingleResultPanel:UpdataPanelData(_heroData)
if heroStaticData and testLiveGO then
poolManager:UnLoadLive(GetResourcePath(heroStaticData.Live), testLiveGO)
heroStaticData, testLiveGO = nil, nil
end
--赋值展示界面数据
LogGreen("_heroData.tempId:".._heroData.tempId)
-- local time2 = Timer.New(function ()
heroStaticData = heroConfigData[_heroData.tempId]
this.UI_Effect_appear:SetActive(false)
SoundManager.PlaySound(SoundConfig.Sound_Recruit3)
if heroStaticData and testLiveGO then
poolManager:UnLoadLive(GetResourcePath(heroStaticData.Live), testLiveGO)
heroStaticData, testLiveGO = nil, nil
end
--不同星级开启不同特效
this.UI_Effect_choukaSSR:SetActive(true)
--TODO:动态加载立绘

View File

@ -45,7 +45,7 @@ function PokemonSummonOneResultPanel:BindEvent()
end)
Util.AddClick(this.openOneAgainButton, function ()
--是否超过每日最大上限
if PrivilegeManager.GetPrivilegeUsedTimes(RecruitMaxtimesId) < 1 then
if PrivilegeManager.GetPrivilegeRemainValue(RecruitMaxtimesId) < 1 then
PopupTipPanel.ShowTip(Language[11760])
return
end

View File

@ -58,10 +58,11 @@ function PokemonSummonTenResultPanel:BindEvent()
self:ClosePanel()
end)
Util.AddClick(this.openTenAgainButton, function ()
local maxTimesId = lotterySetting[RecruitType.LingShowSingle].maxTimesId
local freeTimesId = lotterySetting[RecruitType.LingShowSingle].FreeTimesId
local maxTimesId = lotterySetting[RecruitType.LingShowSingle].MaxTimes
local freeTimesId = lotterySetting[RecruitType.LingShowSingle].FreeTimes
--是否超过每日最大上限
if PrivilegeManager.GetPrivilegeUsedTimes(maxTimesId) < 10 then
if PrivilegeManager.GetPrivilegeRemainValue(maxTimesId) < 10 then
LogGreen("maxTimesId:"..maxTimesId.." times"..PrivilegeManager.GetPrivilegeRemainValue(maxTimesId))
PopupTipPanel.ShowTip(Language[11760])
return
end