parent
cd782feb4d
commit
e3bd86ef08
|
@ -249,8 +249,10 @@ function this:OnClose()
|
|||
this.isPlayDoorAudio = false
|
||||
self.gameObject:SetActive(false)
|
||||
PlayerManager.carbonType = 2
|
||||
SubUIManager.Close(this.UpView)
|
||||
this.UpView = nil
|
||||
if this.UpView then
|
||||
SubUIManager.Close(this.UpView)
|
||||
this.UpView = nil
|
||||
end
|
||||
end
|
||||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
|
@ -259,8 +261,10 @@ function this:OnDestroy()
|
|||
self.timer:Stop()
|
||||
self.timer = nil
|
||||
end
|
||||
SubUIManager.Close(this.UpView)
|
||||
this.UpView = nil
|
||||
if this.UpView then
|
||||
SubUIManager.Close(this.UpView)
|
||||
this.UpView = nil
|
||||
end
|
||||
end
|
||||
|
||||
--刷新时间
|
||||
|
|
Loading…
Reference in New Issue