예제 #1
0
파일: gxtAudioScene.cs 프로젝트: Loko/GXT
 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);
     }
 }
예제 #2
0
파일: gxtAudioScene.cs 프로젝트: Loko/GXT
 private bool FindCollection(string name, out gxtAudioCollection collection)
 {
     collection = audioCollections.Find(item => item.category.Name == name);
     return collection != null;
 }