예제 #1
0
 public void Cleanup()
 {
     if (m_Atlas != null)
     {
         m_Atlas.Release();
     }
     CoreUtils.Destroy(m_DecalMesh);
     // set to null so that they get recreated
     m_DecalMesh = null;
     m_Atlas     = null;
 }
예제 #2
0
 public void Cleanup()
 {
     if (m_Atlas != null)
     {
         m_Atlas.Release();
     }
     foreach (var pair in m_DecalSets)
     {
         pair.Value.Cleanup();
     }
     CoreUtils.Destroy(m_DecalMesh);
     // set to null so that they get recreated
     m_DecalMesh = null;
     m_Atlas     = null;
 }