轩辕宝镜黑屏问题解决

dev_chengFeng
jiaoyangna 2020-10-15 21:48:41 +08:00
parent 8e3e25a450
commit 8c5132185b
1 changed files with 5 additions and 0 deletions

View File

@ -98,6 +98,9 @@ function this:RemoveListener()
end
function this:OnOpen()
if not this.UpView then
this.UpView = SubUIManager.Open(SubUIConfig.UpView, self.gameObject.transform)
end
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Main })
end
@ -247,6 +250,7 @@ function this:OnClose()
self.gameObject:SetActive(false)
PlayerManager.carbonType = 2
SubUIManager.Close(this.UpView)
this.UpView = nil
end
--界面销毁时调用(用于子类重写)
@ -256,6 +260,7 @@ function this:OnDestroy()
self.timer = nil
end
SubUIManager.Close(this.UpView)
this.UpView = nil
end
--刷新时间