【抽卡】修复第一次抽卡报错的问题

dev_chengFeng
gaoxin 2021-05-31 11:06:20 +08:00
parent 928a64f435
commit 92a04cc440
1 changed files with 9 additions and 3 deletions

View File

@ -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()