活动界面点击点金 刷新
parent
d08e051590
commit
4e05a30da5
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue