public void AddCategory(string name) { AudioCategory category = gxtAudioManager.Singleton.GetCategory(name); if (!audioCollections.Exists(item => item.category == category)) { gxtAudioCollection collection = new gxtAudioCollection(category); audioCollections.Add(collection); } else { gxtLog.WriteLineV(gxtVerbosityLevel.WARNING, "Audio Category: {0} already exists in the audio scene", name); } }
private bool FindCollection(string name, out gxtAudioCollection collection) { collection = audioCollections.Find(item => item.category.Name == name); return collection != null; }