public void Remove(SoundToolKitMesh acousticMesh) { SoundToolKitDebug.Assert(acousticMesh != null, "Mesh is null"); if (AcousticMeshes.Contains(acousticMesh)) { m_acousticMeshes.Remove(acousticMesh); } else { SoundToolKitDebug.LogWarning("Mesh wasn't registered."); } }
public void Add(SoundToolKitMesh acousticMesh) { SoundToolKitDebug.Assert(acousticMesh != null, "Mesh is null"); if (!AcousticMeshes.Contains(acousticMesh)) { m_acousticMeshes.Add(acousticMesh); RaiseMeshesChanged(); } else { SoundToolKitDebug.LogWarning("Mesh already registered."); } }