标签:教程
using UnityEngine;
using System.Collections;}
————————————————————————————————————————————————
using UnityEngine;
using System.Collections;
using UnityEngine.Audio;
public class MixLevels : MonoBehaviour {
public AudioMixer masterMixer;
public void SetSfxLvl(float sfxLvl)
{
masterMixer.SetFloat("sfxVol", sfxLvl);
}
public void SetMusicLvl (float musicLvl)
{
masterMixer.SetFloat ("musicVol", musicLvl);
}
}
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:教程
原文地址:http://blog.csdn.net/haifeng619/article/details/47108287