【通用大弹窗】修改
parent
6c17058b8e
commit
7e97b7c90b
|
@ -92,12 +92,13 @@ function GeneralBigPopup:OnOpen(popupKey,...)
|
||||||
end
|
end
|
||||||
this.Mask:SetActive(popupKey ~= GENERAL_POPUP_TYPE.Onhook)
|
this.Mask:SetActive(popupKey ~= GENERAL_POPUP_TYPE.Onhook)
|
||||||
this.BG:SetActive(popupKey ~= GENERAL_POPUP_TYPE.Onhook)
|
this.BG:SetActive(popupKey ~= GENERAL_POPUP_TYPE.Onhook)
|
||||||
|
this.popupKey = popupKey
|
||||||
contentPrefabs[popupKey].gameObject:SetActive(true)
|
this.args = ...
|
||||||
contentScripts[popupKey].view:OnShow(this,...)--1、传入自己 2、传入不定参
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function GeneralBigPopup:OnShow()
|
function GeneralBigPopup:OnShow()
|
||||||
|
contentPrefabs[this.popupKey].gameObject:SetActive(true)
|
||||||
|
contentScripts[this.popupKey].view:OnShow(this,this.args)--1、传入自己 2、传入不定参
|
||||||
end
|
end
|
||||||
|
|
||||||
function GeneralBigPopup:OnClose()
|
function GeneralBigPopup:OnClose()
|
||||||
|
|
Loading…
Reference in New Issue