예제 #1
0
    private void Awake()
    {
        //TODO: Get the initial volume levels from the settings
        _soundEmitterVault = new SoundEmitterVault();

        _pool.Prewarm(_initialSize);
        _pool.SetParent(this.transform);
    }
예제 #2
0
    private void Awake()
    {
        _SFXEventChannel.OnAudioCueRequested   += PlayAudioCue;
        _musicEventChannel.OnAudioCueRequested += PlayAudioCue;

        _pool.Prewarm(_initialSize);
        _pool.SetParent(this.transform);
    }
예제 #3
0
    private void Awake()
    {
        //TODO: Get the initial volume levels from the settings

        _SFXEventChannel.OnAudioCueRequested   += PlayAudioCue;
        _musicEventChannel.OnAudioCueRequested += PlayAudioCue;         //TODO: Treat music requests differently?

        _pool.Prewarm(_initialSize);
    }
예제 #4
0
    private void Awake()
    {
        //TODO: Get the initial volume levels from the settings
        _soundEmitterList = new SoundEmitterList();

        RegisterChannel(_SFXEventChannel);
        RegisterChannel(_musicEventChannel);         //TODO: Treat music requests differently?

        _pool.Prewarm(_initialSize);
        _pool.SetParent(this.transform);
    }
예제 #5
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
            DontDestroyOnLoad(gameObject);

            //TODO: Get the initial volume levels from the settings

            _SFXEventChannel.OnAudioCueRequested   += PlayAudioCue;
            _musicEventChannel.OnAudioCueRequested += PlayAudioCue;     //TODO: Treat music requests differently?

            _pool.Prewarm(_initialSize);
            _pool.SetParent(this.transform);
        }

        else
        {
            Destroy(gameObject);
        }
    }