Exemple #1
0
        void OnDestroy()
        {
            if (m_bokehFilter != null)
            {
                m_bokehFilter.Destroy();
                m_bokehFilter = null;
            }

            if (m_anamorphicGlare != null)
            {
                m_anamorphicGlare.Destroy();
                m_anamorphicGlare = null;
            }

            if (m_lensFlare != null)
            {
                m_lensFlare.Destroy();
                m_lensFlare = null;
            }

#if TRIAL
            if (watermark != null)
            {
                DestroyImmediate(watermark);
                watermark = null;
            }
#endif
        }
Exemple #2
0
 private void OnDestroy()
 {
     if (this.m_bokehFilter != null)
     {
         this.m_bokehFilter.Destroy();
         this.m_bokehFilter = null;
     }
     if (this.m_anamorphicGlare != null)
     {
         this.m_anamorphicGlare.Destroy();
         this.m_anamorphicGlare = null;
     }
     if (this.m_lensFlare != null)
     {
         this.m_lensFlare.Destroy();
         this.m_lensFlare = null;
     }
 }