コード例 #1
0
 void OnDestroy()
 {
     if (m_Particle2D != null)
     {
         m_Particle2D.Destroy();
     }
     material     = null;
     configValues = null;
     effectConfig = null;
 }
コード例 #2
0
    protected override void OnDestroy()
    {
        if (m_Particle2D != null)
        {
            m_Particle2D.Destroy();
            m_Particle2D = null;
        }
        material     = null;
        configValues = null;
        effectConfig = null;

        base.OnDestroy();
    }