拍脸提交
parent
6ca32cdde3
commit
004121df8b
|
@ -45,8 +45,10 @@ end
|
|||
function SurpriseBox:RemoveListener()
|
||||
end
|
||||
|
||||
local fun
|
||||
--界面打开时调用(用于子类重写)
|
||||
function SurpriseBox:OnOpen()
|
||||
function SurpriseBox:OnOpen(_fun)
|
||||
fun = _fun
|
||||
end
|
||||
|
||||
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
|
||||
|
@ -195,7 +197,10 @@ function SurpriseBox:SetViewList()
|
|||
end
|
||||
|
||||
function SurpriseBox:OnClose()
|
||||
|
||||
if fun then
|
||||
fun()
|
||||
fun = nil
|
||||
end
|
||||
end
|
||||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
|
|
Loading…
Reference in New Issue