【逍遥游】恭喜获得中道具有跳转按钮,跳转后再返回显示空的恭喜获得
parent
48330717a7
commit
2c0c23553c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue