public void PlayLandSound() { SourceSFX.PlayOneShot(landSound, SfxVolume); }
/// <summary> /// Воспроизведение звука из массива /// </summary> /// <param name="clipName">Имя звука</param> public void PlaySound(string clipName) { SourceSFX.PlayOneShot(GetSound(clipName), SfxVolume); }
public void PlayFootstepSounds() { SourceSFX.PlayOneShot(FootstepSounds[Random.Range(0, JumpSounds.Length)], SfxVolume); }