protected void Awake() { _audioLoader = GetComponent <Uzu.AudioLoader> (); _audioController = this.gameObject.AddComponent <Uzu.AudioController> (); // Initialize audio controller. { Uzu.AudioControllerConfig config = new Uzu.AudioControllerConfig(); config.AudioSourceMaxCount = MAX_AUDIO_SOURCES; config.AudioLoader = _audioLoader; _audioController.Initialize(config); } }
protected void Awake() { _audioLoader = GetComponent<Uzu.AudioLoader> (); _audioController = this.gameObject.AddComponent<Uzu.AudioController> (); // Initialize audio controller. { Uzu.AudioControllerConfig config = new Uzu.AudioControllerConfig (); config.AudioSourceMaxCount = MAX_AUDIO_SOURCES; config.AudioLoader = _audioLoader; _audioController.Initialize (config); } }