关闭界面时 称号预设未关闭 错误 问题修改

dev_chengFeng
jiaoyangna 2021-06-30 14:10:30 +08:00 committed by JieLing
parent d58ab83e12
commit 8abe558f6c
1 changed files with 8 additions and 0 deletions

View File

@ -231,6 +231,10 @@ function this.RefreshPlayerInfo(data)
-- sortingorder = this.sortingOrder -- sortingorder = this.sortingOrder
-- end -- end
LogError("title=="..title) LogError("title=="..title)
if titleLive then
SubUIManager.Close(titleLive)
titleLive = nil
end
if not titleLive then if not titleLive then
titleLive = SubUIManager.Open(SubUIConfig.PlayerTitle, this.titlePar.transform) titleLive = SubUIManager.Open(SubUIConfig.PlayerTitle, this.titlePar.transform)
titleLive:SetShow(title, Vector3.New(0,0,0), 0.5, 0.03*20, this.sortingOrder) titleLive:SetShow(title, Vector3.New(0,0,0), 0.5, 0.03*20, this.sortingOrder)
@ -464,6 +468,10 @@ end
--界面关闭时调用(用于子类重写) --界面关闭时调用(用于子类重写)
function PlayerInfoPopup:OnClose() function PlayerInfoPopup:OnClose()
this.imprintObj:SetActive(false) this.imprintObj:SetActive(false)
if titleLive then
SubUIManager.Close(titleLive)
titleLive = nil
end
end end
--界面销毁时调用(用于子类重写) --界面销毁时调用(用于子类重写)