private IEnumerator OnClickQ7WaitForThreadIEnumerator(string path) { Result = null; Thread td = new Thread(new ParameterizedThreadStart(OnClickQ7ThreadFun)); td.Start(path); while (true) { if (Result != null) { break; } yield return(0); } UITest.SetData(Result); string audioText = Result.Remove(0, Result.IndexOf(")") + 1); StartCoroutine(AnswersToAudio(audioText)); yield return(0); }