using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Audio;
// 代码控制每个每个分组的音效
public class AudionSetting : MonoBehaviour
{
// 声音混合器
public AudioMixer audioMixer;
//控制主音量
public void ControlMainVolume(float v)
{
audioMixer.SetFloat("main", v);
}
//控制背景音量
public void ControlBgmVolume(float v)
{
audioMixer.SetFloat("music", v);
}
//控制特效音量
public void ControlTexiaoVolume(float v)
{
audioMixer.SetFloat("sound", v);
}
}