Beispiel #1
0
        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.");
            }
        }
Beispiel #2
0
        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.");
            }
        }