コード例 #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;
 }