Пример #1
0
    public IEnumerator PlaySampleAudioRoutine()
    {
        lockTouch            = true;
        isFirstSamplePlaying = true;
        player.Stop();
        samplePlayer.Play();
        yield return(new WaitForSeconds(5.0f));

        samplePlayer.Stop();
        yield return(new WaitForSeconds(1.0f));

        player.Play();
        lockTouch            = false;
        isFirstSamplePlaying = false;
    }