public void PlayMusic(string clipId) { AudioClipExtended clip = System.Array.Find(_clips, c => c.ID == clipId); if (clip != null) { PlayMusic(clip); } else { AudioManager.Instance.PlayMusic(clipId); } }
public void PlaySFX(string clipId) { AudioClipExtended clip = System.Array.Find(_clips, c => c.ID == clipId); if (clip != null) { PlaySFX(clip); } else { AudioManager.Instance.PlaySoundEffectOneShot(clipId); } }
public void PlaySFX(AudioClipExtended clip) { AudioManager.Instance.PlaySoundEffectOneShot(clip.Clip, clip.Volume); }
public void PlayMusic(AudioClipExtended clip) { AudioManager.Instance.PlayMusic(clip.Clip); }