关闭界面时 称号预设未关闭 错误 问题修改
parent
d58ab83e12
commit
8abe558f6c
|
@ -231,6 +231,10 @@ function this.RefreshPlayerInfo(data)
|
|||
-- sortingorder = this.sortingOrder
|
||||
-- end
|
||||
LogError("title=="..title)
|
||||
if titleLive then
|
||||
SubUIManager.Close(titleLive)
|
||||
titleLive = nil
|
||||
end
|
||||
if not titleLive then
|
||||
titleLive = SubUIManager.Open(SubUIConfig.PlayerTitle, this.titlePar.transform)
|
||||
titleLive:SetShow(title, Vector3.New(0,0,0), 0.5, 0.03*20, this.sortingOrder)
|
||||
|
@ -464,6 +468,10 @@ end
|
|||
--界面关闭时调用(用于子类重写)
|
||||
function PlayerInfoPopup:OnClose()
|
||||
this.imprintObj:SetActive(false)
|
||||
if titleLive then
|
||||
SubUIManager.Close(titleLive)
|
||||
titleLive = nil
|
||||
end
|
||||
end
|
||||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
|
|
Loading…
Reference in New Issue