//NEEDED IF USING THE QUEUE DISPATCH SYSTEM.
 public static void Update()
 {
     for (int i = 0; i < maxDispatchedAgent; i++)
     {
         if (waitingForPath.Count == 0)
         {
             break;
         }
         IPathAgent agent = waitingForPath.Dequeue();
         agent.ReceivePath(GetPath(agent.PathFindingStart, agent.PathFindingEnd));
     }
 }