public void PlayBGM(string soundName) { AudioClipData clipData = BGMData.Find(soundName); audioSource.volume = clipData.volume; audioSource.clip = clipData.clip; audioSource.Play(); }
public void PlaySE(string soundName) { AudioClipData clipData = SEData.Find(soundName); audioSource.PlayOneShot(clipData.clip, clipData.volume); }