【通用大弹窗】修改

dev_chengFeng
ZhangBiao 2021-09-16 18:11:33 +08:00
parent 6c17058b8e
commit 7e97b7c90b
1 changed files with 4 additions and 3 deletions

View File

@ -92,12 +92,13 @@ function GeneralBigPopup:OnOpen(popupKey,...)
end
this.Mask:SetActive(popupKey ~= GENERAL_POPUP_TYPE.Onhook)
this.BG:SetActive(popupKey ~= GENERAL_POPUP_TYPE.Onhook)
contentPrefabs[popupKey].gameObject:SetActive(true)
contentScripts[popupKey].view:OnShow(this,...)--1、传入自己 2、传入不定参
this.popupKey = popupKey
this.args = ...
end
function GeneralBigPopup:OnShow()
contentPrefabs[this.popupKey].gameObject:SetActive(true)
contentScripts[this.popupKey].view:OnShow(this,this.args)--1、传入自己 2、传入不定参
end
function GeneralBigPopup:OnClose()