示例#1
0
 public void PlaySound(string soundName, Vector3 pos)
 {
     if (soundName != null)
     {
         PlaySound(library.GetClipFromName(soundName), pos);
     }
 }
示例#2
0
    public void PlaySound(string soundName, Vector3 pos, float volume)
    {
        AudioClip s = library.GetClipFromName(soundName);

        if (!s)
        {
            Debug.LogWarning("Sound " + soundName + " not found on SoundLibrary");
            return;
        }
        else
        {
            PlaySound(s, pos, volume);
        }
    }
示例#3
0
 public void PlaySound(string groupName, Vector3 pos) //Escolhe o som de um grupo de forma aleatória
 {
     PlaySound(library.GetClipFromName(groupName), pos);
 }
 public void PlaySound(string clip, Vector3 pos)
 {
     PlaySound(library.GetClipFromName(clip), pos);
 }
示例#5
0
 public void PlaySound(byte _id, Vector3 pos)
 {
     PlaySound(library.GetClipFromName(_id), pos);
 }
 public void PlaySound2D(string soundName)
 {
     sfx2DSource.PlayOneShot(library.GetClipFromName(soundName));
 }
示例#7
0
 public void PlaySound(string soundName, Vector3 pos)
 {
     PlaySound(m_Library.GetClipFromName(soundName), pos);
 }
示例#8
0
 public void PlaySound2D(string soundName)
 {
     sfx2DSource.PlayOneShot(library.GetClipFromName(soundName), sfxVolumePercent * masterVolumePercent);
 }
 public void PlaySound(string soundName, Vector3 position)
 {
     PlaySound(library.GetClipFromName(soundName), position);
 }
示例#10
0
 public void PlaySound(string name, Vector3 pos)
 {
     PlaySound(library.GetClipFromName(name), pos);
 }
示例#11
0
 public void PlayMusic(string musicName, float fadeDuration = 1)
 {
     PlayMusic(library.GetClipFromName(musicName), fadeDuration);
 }
示例#12
0
    public void PlaySound2D(string name)
    {
        AudioClip clip = soundsLibrary.GetClipFromName(name);

        sfxSource.PlayOneShot(clip, sfxVolumen * masterVolumen);
    }
示例#13
0
 public void PlaySound(string soundName, Vector3 pos, float soundMultiply)
 {
     PlaySound(library.GetClipFromName(soundName), pos, soundMultiply);
 }
示例#14
0
 public void PlaySound2D(string soundName)                                                                //function to play 2d sound
 {
     sfx2DSource.PlayOneShot(library.GetClipFromName(soundName), sfxVolumePercent * masterVolumePercent); //play the sound at certain volume
 }
示例#15
0
 public void PlaySound(string clip)
 {
     PlaySound(library.GetClipFromName(clip));
 }
示例#16
0
 public void PlaySound(string soundName)
 {
     PlaySound(libary.GetClipFromName(soundName), transform.position);
 }
示例#17
0
 public void PlaySound(string soundName, Vector3 pos, int index = -1)
 {
     PlaySound(library.GetClipFromName(soundName, index), pos);
 }
 //alter
 public void PlaySound(string soundName, Vector3 pos)
 {
     //get sound from /library/
     PlaySound(library.GetClipFromName(soundName), pos);
 }
示例#19
0
    public void PlaySoundByName(string name)
    {
        AudioClip clip = soundLibrary.GetClipFromName(name);

        AddClipToChannel(clip);
    }
示例#20
0
 public void PlaySound2D(string soundName)                                             // 사운드이팩트를 사운드이름으로 받아서 플레이하는 메소드
 {
     sfx2DSource.PlayOneShot(library.GetClipFromName(soundName), masterVolumePercent); // 한번재생
 }
示例#21
0
 public void PlayMusic(string soundName, float duration)
 {
     PauseMenu.pMenu.CurrMusic = soundName;
     PlayMusic(library.GetClipFromName(soundName), duration);
 }
示例#22
0
 public void PlaySound(SoundClipType soundtype, Vector3 pos)
 {
     PlaySound(_library.GetClipFromName(soundtype), pos);
 }
示例#23
0
 public void PlaySound(string name)
 {
     PlaySound(library.GetClipFromName(name));
 }