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