Esempio n. 1
0
 public void OnInitialise(string dspComponent)
 {
     AudioComponent[] array = CollectNoInstanceAudioComponents();
     for (int i = 0; i < array.Length; i++)
     {
         AudioComponent audioComponent = array[i];
         if (array[i].AudioSourceGameObject != null)
         {
             _dspInstances.Add(CreateComponent(array[i].AudioSourceGameObject));
         }
         else
         {
             audioComponent.AddDSPComponent(this);
         }
     }
     _name          = dspComponent;
     _isInitialized = true;
 }