Пример #1
0
 public void PlayLandSound()
 {
     SourceSFX.PlayOneShot(landSound, SfxVolume);
 }
Пример #2
0
    /// <summary>
    /// Воспроизведение звука из массива
    /// </summary>
    /// <param name="clipName">Имя звука</param>

    public void PlaySound(string clipName)
    {
        SourceSFX.PlayOneShot(GetSound(clipName), SfxVolume);
    }
Пример #3
0
 public void PlayFootstepSounds()
 {
     SourceSFX.PlayOneShot(FootstepSounds[Random.Range(0, JumpSounds.Length)], SfxVolume);
 }