轩辕宝镜黑屏问题解决
parent
8e3e25a450
commit
8c5132185b
|
|
@ -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
|
||||
|
||||
--刷新时间
|
||||
|
|
|
|||
Loading…
Reference in New Issue