Beispiel #1
0
    IEnumerator Start()
    {
        while (true)
        {
            freq = soundTable.GetRandomFreq(); // randomize freq

            playSound = true;
            samplePos = 0; // reset time
            yield return(new WaitForSeconds(interval));

            playSound = false;
            yield return(new WaitForSeconds(interval));
        }
    }