【命格】属性加成报错修改

dev_chengFeng
ZhangBiao 2022-01-04 16:57:52 +08:00
parent fb8de57afa
commit 14044932b5
1 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,9 @@ end
--界面关闭时调用(用于子类重写)
function this:OnClose()
-- 还原透明度
parent.backBtn:GetComponent("Image").color = Color.New(0, 0, 0, 200)
if parent then
parent.backBtn:GetComponent("Image").color = Color.New(0, 0, 0, 200)
end
end
--界面销毁时调用(用于子类重写)