desktop-maesty/steve 6 years ago
parent
commit
311e7b4084
  1. 2
      Assets/Fungus/Scripts/Components/WriterAudio.cs

2
Assets/Fungus/Scripts/Components/WriterAudio.cs

@ -228,7 +228,7 @@ namespace Fungus
{ {
if (nextBeepTime < Time.realtimeSinceStartup) if (nextBeepTime < Time.realtimeSinceStartup)
{ {
targetAudioSource.clip = beepSounds[Random.Range(0, beepSounds.Count - 1)]; targetAudioSource.clip = beepSounds[Random.Range(0, beepSounds.Count)];
if (targetAudioSource.clip != null) if (targetAudioSource.clip != null)
{ {

Loading…
Cancel
Save