18 lines
353 B
C#
18 lines
353 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|