Browse Source

Fixed issue when first creating a random sound component.

master
Hector Castelli Zacharias 7 years ago
parent
commit
91781f8c58
  1. 3
      Assets/Fungus/Scripts/Commands/PlayRandomSound.cs

3
Assets/Fungus/Scripts/Commands/PlayRandomSound.cs

@ -66,7 +66,8 @@ namespace Fungus
string sounds = "[";
foreach (AudioClip ac in soundClip) {
sounds+=ac.name+" ,";
if(ac!=null)
sounds+=ac.name+" ,";
}
sounds = sounds.TrimEnd(' ', ',');
sounds += "]";

Loading…
Cancel
Save