From 8288e75445e85176fdc403fc8aafd676f3b380a6 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Fri, 6 Jan 2023 08:35:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96gameObject=E8=A2=ABDestory?= =?UTF-8?q?=E5=90=8E=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Internal/Painter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Internal/Painter.cs b/Runtime/Internal/Painter.cs index b1ac47b4..e0c33fea 100644 --- a/Runtime/Internal/Painter.cs +++ b/Runtime/Internal/Painter.cs @@ -23,7 +23,7 @@ namespace XCharts.Runtime public Type type { get { return m_Type; } set { m_Type = value; } } public void Refresh() { - if (gameObject == null) return; + if (null == this || gameObject == null) return; if (!gameObject.activeSelf) return; m_Refresh = true; }