轩辕宝镜黑屏问题解决

jiaoyangna 2020-10-15 21:48:41 +08:00
parent ea4166a6e3
commit 19aee3b717
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
@ -243,6 +246,7 @@ function this:OnClose()
self.gameObject:SetActive(false)
PlayerManager.carbonType = 2
SubUIManager.Close(this.UpView)
this.UpView = nil
end
--界面销毁时调用(用于子类重写)
@ -252,6 +256,7 @@ function this:OnDestroy()
self.timer = nil
end
SubUIManager.Close(this.UpView)
this.UpView = nil
end
--刷新时间