【山河社稷图】提交zq
parent
8e22dc72eb
commit
361c3549be
|
@ -49,6 +49,10 @@ function this:BindEvent()
|
||||||
end)
|
end)
|
||||||
Util.AddClick(this.backBtn, function()
|
Util.AddClick(this.backBtn, function()
|
||||||
parent:ClosePanel()
|
parent:ClosePanel()
|
||||||
|
if fun then
|
||||||
|
fun()
|
||||||
|
fun = nil
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
Util.AddClick(this.BackBattleBtn, function()
|
Util.AddClick(this.BackBattleBtn, function()
|
||||||
FightLevelManager.HardStageReportRequset(fightLevelData, function()
|
FightLevelManager.HardStageReportRequset(fightLevelData, function()
|
||||||
|
@ -226,10 +230,7 @@ function this.LeftOrRightBtnClickEvent()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function this:OnClose()
|
function this:OnClose()
|
||||||
if fun then
|
|
||||||
fun()
|
|
||||||
fun = nil
|
|
||||||
end
|
|
||||||
for i, v in pairs(liveNodes) do
|
for i, v in pairs(liveNodes) do
|
||||||
if v then
|
if v then
|
||||||
poolManager:UnLoadLive(liveNames[i],v)
|
poolManager:UnLoadLive(liveNames[i],v)
|
||||||
|
|
|
@ -45,6 +45,10 @@ function this:BindEvent()
|
||||||
end)
|
end)
|
||||||
Util.AddClick(this.backBtn, function()
|
Util.AddClick(this.backBtn, function()
|
||||||
parent:ClosePanel()
|
parent:ClosePanel()
|
||||||
|
if fun then
|
||||||
|
fun()
|
||||||
|
fun = nil
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
Util.AddClick(this.BackBattleBtn, function()
|
Util.AddClick(this.BackBattleBtn, function()
|
||||||
FightLevelManager.HardStageReportRequset(fightLevelData, 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)
|
SetTextVerTial(name.gameObject,Vector3.New(35,-7.45,0),nil,nil,8)
|
||||||
end
|
end
|
||||||
function this:OnClose()
|
function this:OnClose()
|
||||||
if fun then
|
|
||||||
fun()
|
|
||||||
fun = nil
|
|
||||||
end
|
|
||||||
for i, v in pairs(liveNodes) do
|
for i, v in pairs(liveNodes) do
|
||||||
if v then
|
if v then
|
||||||
poolManager:UnLoadLive(liveNames[i],v)
|
poolManager:UnLoadLive(liveNames[i],v)
|
||||||
|
|
|
@ -116,10 +116,6 @@ end
|
||||||
|
|
||||||
function this:OnClose()
|
function this:OnClose()
|
||||||
rewardData = {}
|
rewardData = {}
|
||||||
if fun then
|
|
||||||
fun()
|
|
||||||
fun = nil
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function this:OnDestroy()
|
function this:OnDestroy()
|
||||||
|
|
Loading…
Reference in New Issue