Example #1
0
    public void ChangeSoundEffectsVolume()
    {
        SoundEffects soundEffects = GameObject.FindGameObjectWithTag("soundEffects").GetComponent <SoundEffects>();

        soundEffects.ChangeSoundEffectVolume(soundEffectsSlider.GetComponent <UnityEngine.UI.Slider>().value);
        soundEffects.PlaySoundEffect(soundEffect);
    }