jump-game/Jump Game/Assets/Scripts/Menu/SettingsMenu.cs

18 lines
353 B
C#
Raw Normal View History

2022-03-30 16:38:03 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Audio;
public class SettingsMenu : MonoBehaviour
{
public AudioMixer audioMixer;
public void setVolume (float volume){
audioMixer.SetFloat("volume", volume);
}
void Start(){
audioMixer.SetFloat("volume", -30);
}
}