Beispiel #1
0
 /// <summary>
 /// Update is called every frame, if the MonoBehaviour is enabled.
 /// </summary>
 void Update()
 {
     if (results.Count > 0)
     {
         int itemsInQuueue = results.Count;
         lock (results)
         {
             for (int i = 0; i < itemsInQuueue; i++)
             {
                 PathResult result = results.Dequeue();
                 result.callBack(result.path, result.success);
             }
         }
     }
 }