轩辕宝镜黑屏问题解决
parent
ea4166a6e3
commit
19aee3b717
|
|
@ -98,6 +98,9 @@ function this:RemoveListener()
|
||||||
end
|
end
|
||||||
|
|
||||||
function this:OnOpen()
|
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 })
|
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Main })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -243,6 +246,7 @@ function this:OnClose()
|
||||||
self.gameObject:SetActive(false)
|
self.gameObject:SetActive(false)
|
||||||
PlayerManager.carbonType = 2
|
PlayerManager.carbonType = 2
|
||||||
SubUIManager.Close(this.UpView)
|
SubUIManager.Close(this.UpView)
|
||||||
|
this.UpView = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
--界面销毁时调用(用于子类重写)
|
--界面销毁时调用(用于子类重写)
|
||||||
|
|
@ -252,6 +256,7 @@ function this:OnDestroy()
|
||||||
self.timer = nil
|
self.timer = nil
|
||||||
end
|
end
|
||||||
SubUIManager.Close(this.UpView)
|
SubUIManager.Close(this.UpView)
|
||||||
|
this.UpView = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
--刷新时间
|
--刷新时间
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue