Esempio n. 1
0
    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);
        }
    }
Esempio n. 2
0
    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);
        }
    }