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 --界面销毁时调用(用于子类重写)