From 14044932b54620a297879c00551067eeb2b0ec29 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Tue, 4 Jan 2022 16:57:52 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=91=BD=E6=A0=BC=E3=80=91=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=8A=A0=E6=88=90=E6=8A=A5=E9=94=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GeneralPanel/View2/GeneralInfoPopup_PracticeLevel.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View2/GeneralInfoPopup_PracticeLevel.lua b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View2/GeneralInfoPopup_PracticeLevel.lua index 0f54aad4b3..c5a0a715e6 100644 --- a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View2/GeneralInfoPopup_PracticeLevel.lua +++ b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View2/GeneralInfoPopup_PracticeLevel.lua @@ -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 --界面销毁时调用(用于子类重写)