轩辕 修改 提交

(cherry picked from commit 27f8331e62)
dev_chengFeng
ZhangBiao 2020-10-19 21:21:54 +08:00
parent cd782feb4d
commit e3bd86ef08
1 changed files with 8 additions and 4 deletions

View File

@ -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
--刷新时间