void OnDestroy()
 {
     if (m_Particle2D != null)
     {
         m_Particle2D.Destroy();
     }
     material     = null;
     configValues = null;
     effectConfig = null;
 }
Exemplo n.º 2
0
    protected override void OnDestroy()
    {
        if (m_Particle2D != null)
        {
            m_Particle2D.Destroy();
            m_Particle2D = null;
        }
        material     = null;
        configValues = null;
        effectConfig = null;

        base.OnDestroy();
    }