【抽卡】修复第一次抽卡报错的问题
parent
928a64f435
commit
92a04cc440
|
|
@ -20,7 +20,9 @@ end
|
|||
|
||||
function this:BindEvent()
|
||||
Util.AddClick(this.backBtn,function()
|
||||
parent:ClosePanel()
|
||||
if parent then
|
||||
parent:ClosePanel()
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
|
|
@ -91,7 +93,9 @@ function this:OnShow(_parent,...)
|
|||
this.timer = nil
|
||||
end
|
||||
this.timer = Timer.New(function()
|
||||
parent:ClosePanel()
|
||||
if parent then
|
||||
parent:ClosePanel()
|
||||
end
|
||||
end,2):Start()
|
||||
end
|
||||
|
||||
|
|
@ -100,7 +104,9 @@ function this:OnClose()
|
|||
this.timer:Stop()
|
||||
this.timer = nil
|
||||
end
|
||||
parent:ClosePanel()
|
||||
if parent then
|
||||
parent:ClosePanel()
|
||||
end
|
||||
end
|
||||
|
||||
function this:OnDestroy()
|
||||
|
|
|
|||
Loading…
Reference in New Issue