mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-25 10:20:10 +00:00
优化gameObject被Destory后的判断
This commit is contained in:
@@ -23,7 +23,7 @@ namespace XCharts.Runtime
|
|||||||
public Type type { get { return m_Type; } set { m_Type = value; } }
|
public Type type { get { return m_Type; } set { m_Type = value; } }
|
||||||
public void Refresh()
|
public void Refresh()
|
||||||
{
|
{
|
||||||
if (gameObject == null) return;
|
if (null == this || gameObject == null) return;
|
||||||
if (!gameObject.activeSelf) return;
|
if (!gameObject.activeSelf) return;
|
||||||
m_Refresh = true;
|
m_Refresh = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user