示例#1
0
        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);
            }
        }
示例#2
0
        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);
            }
        }
示例#3
0
 public void PlaySFX(AudioClipExtended clip)
 {
     AudioManager.Instance.PlaySoundEffectOneShot(clip.Clip, clip.Volume);
 }
示例#4
0
 public void PlayMusic(AudioClipExtended clip)
 {
     AudioManager.Instance.PlayMusic(clip.Clip);
 }