优化gameObject被Destory后的判断

This commit is contained in:
monitor1394
2023-01-06 08:35:16 +08:00
parent 6ace71f8db
commit 8288e75445

View File

@@ -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;
}