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)); } }
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)); } }