Example #1
0
 void Awake()
 {
     _instance = this;
     _hashtable = new Hashtable ();
     _listener = new GameObject("AudioChannels", typeof(AudioListener));
     _listener.transform.SetParent (transform);
     foreach (FageAudioNode node in nodes) {
         node.Align ();
         _hashtable.Add(node, new FageAudioPooler(node, _listener));
     }
 }
Example #2
0
 void Awake()
 {
     _instance  = this;
     _hashtable = new Hashtable();
     _listener  = new GameObject("AudioChannels", typeof(AudioListener));
     _listener.transform.SetParent(transform);
     foreach (FageAudioNode node in nodes)
     {
         node.Align();
         _hashtable.Add(node, new FageAudioPooler(node, _listener));
     }
 }