【山河社稷图】提交zq

dev_chengFeng
DESKTOP-98AVA47\Administrator 2021-05-21 04:52:04 +08:00
parent 8e22dc72eb
commit 361c3549be
3 changed files with 9 additions and 12 deletions

View File

@ -49,6 +49,10 @@ function this:BindEvent()
end)
Util.AddClick(this.backBtn, function()
parent:ClosePanel()
if fun then
fun()
fun = nil
end
end)
Util.AddClick(this.BackBattleBtn, function()
FightLevelManager.HardStageReportRequset(fightLevelData, function()
@ -226,10 +230,7 @@ function this.LeftOrRightBtnClickEvent()
end
end
function this:OnClose()
if fun then
fun()
fun = nil
end
for i, v in pairs(liveNodes) do
if v then
poolManager:UnLoadLive(liveNames[i],v)

View File

@ -45,6 +45,10 @@ function this:BindEvent()
end)
Util.AddClick(this.backBtn, function()
parent:ClosePanel()
if fun then
fun()
fun = nil
end
end)
Util.AddClick(this.BackBattleBtn, function()
FightLevelManager.HardStageReportRequset(fightLevelData, function()
@ -208,10 +212,6 @@ function this.SetCardSingleData(o,monsterId, _pos)
SetTextVerTial(name.gameObject,Vector3.New(35,-7.45,0),nil,nil,8)
end
function this:OnClose()
if fun then
fun()
fun = nil
end
for i, v in pairs(liveNodes) do
if v then
poolManager:UnLoadLive(liveNames[i],v)

View File

@ -116,10 +116,6 @@ end
function this:OnClose()
rewardData = {}
if fun then
fun()
fun = nil
end
end
function this:OnDestroy()