Esempio n. 1
0
 IEnumerator EnumeratorLoop()
 {
     while (true)
     {
         if (threadDown.Count > 0)
         {
             int handle = threadDown.Dequeue();
             controller.GetFilePath(handle, (x) => waitLoadTexture.Enqueue(new KeyValuePair <int, byte[]>(handle, x)));
         }
         yield return(new WaitForSeconds(1));
     }
 }