forked from endernon/PGRData
16 lines
388 B
Lua
16 lines
388 B
Lua
--挂机收益功能解锁弹窗
|
|
local XUiAreaWarHangUpJs = XLuaUiManager.Register(XLuaUi, "UiAreaWarHangUpJs")
|
|
|
|
function XUiAreaWarHangUpJs:OnAwake()
|
|
self:RegisterClickEvent(self.BtnClose, self.Close)
|
|
end
|
|
|
|
function XUiAreaWarHangUpJs:OnStart(closeCb)
|
|
self.CloseCb = closeCb
|
|
end
|
|
|
|
function XUiAreaWarHangUpJs:OnDestroy()
|
|
if self.CloseCb then
|
|
self.CloseCb()
|
|
end
|
|
end
|