【逍遥游】恭喜获得中道具有跳转按钮,跳转后再返回显示空的恭喜获得

dev_chengFeng
ZhangBiao 2021-07-28 12:06:58 +08:00
parent 48330717a7
commit 2c0c23553c
1 changed files with 5 additions and 5 deletions

View File

@ -116,11 +116,7 @@ function this:OnShow()
end
--界面关闭时调用(用于子类重写)
function this:OnClose()
while(this.grid.transform.childCount>0)
do
destroy(this.grid.transform:GetChild(0).gameObject)
end
function this:OnClose()
if triggertype>0 then
Game.GlobalEvent:DispatchEvent(GameEvent.XiaoYao.PlayEventEffect)
end
@ -128,6 +124,10 @@ end
--界面销毁时调用(用于子类重写)
function this:OnDestroy()
while(this.grid.transform.childCount>0)
do
destroy(this.grid.transform:GetChild(0).gameObject)
end
this.spLoader:Destroy()
end