Пример #1
0
    private IEnumerator GetTxt_SendWav_Routine(FileSlot fileSlot)
    {
        while (true)
        {
            if (File.Exists(Path.Combine(dataPath, "result.wav")))
            {
                break;
            }
            Debug.Log(File.Exists(Path.Combine(dataPath, "result.wav")));
            yield return(null);
        }

        yield return(StartCoroutine(fileSlot.WavEncodingCoroutine("result")));

        yield return(StartCoroutine(fileSlot.UploadWavCoroutine(false)));
    }