mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-18 14:30: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 void Refresh()
|
||||
{
|
||||
if (gameObject == null) return;
|
||||
if (null == this || gameObject == null) return;
|
||||
if (!gameObject.activeSelf) return;
|
||||
m_Refresh = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user