【通用大弹窗】修改
parent
6c17058b8e
commit
7e97b7c90b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue