public void PlayBG(BGAudio audio) { _source.clip = GetClip(audio.ToString()); SetVolume(audio.ToString(), _source); _source.loop = true; _source.Play(); }
public void PlayBG(BGAudio audio) { mBGAudioSource.clip = GetAudioClip(audio); SetVolume(audio.ToString(), mBGAudioSource); mBGAudioSource.loop = true; mBGAudioSource.Play(); }
public AudioClip GetAudioClip(BGAudio aduio) { return(GetAudioClip(aduio.ToString())); }