void OnDestroy() { if (m_Particle2D != null) { m_Particle2D.Destroy(); } material = null; configValues = null; effectConfig = null; }
protected override void OnDestroy() { if (m_Particle2D != null) { m_Particle2D.Destroy(); m_Particle2D = null; } material = null; configValues = null; effectConfig = null; base.OnDestroy(); }