Exemplo n.º 1
0
 void StopLast()
 {
     if (item != null)
     {
         item.Stop();
     }
 }
Exemplo n.º 2
0
    public static void PlayNextAudioClip()
    {
        if (currentAudioClipIndex > 29)
        {
            return;
        }

        if (currentAudioClip != null && currentAudioClip.State == PureDataStates.Stopped)
        {
            currentAudioClip.Stop();
            currentAudioClip = null;
        }

        if (currentAudioClip == null)
        {
            currentAudioClipIndex += 1;
            currentAudioClip       = PureData.Play(audioClipPrefix + (currentAudioClipIndex < 10 ? "0" + currentAudioClipIndex : currentAudioClipIndex.ToString()), PureDataOption.Output("Voice"));
        }
    }