活动界面点击点金 刷新

dev_chengFeng
jiaoyangna 2021-05-13 21:06:45 +08:00
parent d08e051590
commit 4e05a30da5
1 changed files with 6 additions and 3 deletions

View File

@ -12,15 +12,18 @@ end
--添加事件监听(用于子类重写)
function CommonActPage:AddListener()
Game.GlobalEvent:AddEvent(GameEvent.Bag.BagGold, function()
self:RefreshData(true,false,false)
end)
end
--移除事件监听(用于子类重写)
function CommonActPage:RemoveListener()
Game.GlobalEvent:RemoveEvent(GameEvent.Bag.BagGold, function()
self:RefreshData(true,false,false)
end)
end
function CommonActPage:InitComponent()
self.bg = Util.GetGameObject(self.gameObject, "Bg/banner")
self.titleBgIma = self.bg:GetComponent("Image")