Exemplo n.º 1
0
 private IEnumerator ReadEachSecond(string file)
 {
     while (true)
     {
         var words = WordFileReader.GetWords(file);
         foreach (var word in words)
         {
             currentWord.Value = word;
             Debug.Log($"current={currentWord.Value}");
             yield return(new WaitForSeconds(1f));
         }
     }
 }
Exemplo n.º 2
0
 public WordFileReaderTest()
 {
     this.reader = new WordFileReader();
 }