Beispiel #1
0
 public void Play()
 {
     if (consistent)
     {
         GameSound.Play(clips[index], volume);
         index++;
         if (index == clips.Length)
         {
             index--;
         }
     }
     else
     {
         GameSound.Play(clips.GetRandomItem(), volume);
     }
 }
Beispiel #2
0
 public void OnClick()
 {
     GameSound.Play(sound);
 }