活动结束报错修改

dev_chengFeng
jiaoyangna 2021-05-14 13:21:01 +08:00
parent 3905116205
commit fac4b21c6b
1 changed files with 5 additions and 5 deletions

View File

@ -14,20 +14,20 @@ end
function CommonActPage:AddListener()
Game.GlobalEvent:AddEvent(GameEvent.Bag.BagGold, function()
self:RefreshData(true,false,false)
end)
end,self)
Game.GlobalEvent:AddEvent(GameEvent.DynamicTask.OnMissionChange, function()
self:RefreshData(true,false,false)
end)
end,self)
end
--移除事件监听(用于子类重写)
function CommonActPage:RemoveListener()
Game.GlobalEvent:RemoveEvent(GameEvent.Bag.BagGold, function()
self:RefreshData(true,false,false)
end)
end,self)
Game.GlobalEvent:RemoveEvent(GameEvent.DynamicTask.OnMissionChange, function()
self:RefreshData(true,false,false)
end)
self:RefreshData(true,false,false)
end,self)
end
function CommonActPage:InitComponent()