Пример #1
0
 /// <summary>
 /// Draw current agent path
 /// </summary>
 /// <returns></returns>
 private IEnumerator DrawPath()
 {
     while (true)
     {
         if (agent.hasPath)
         {
             PathRenderer.DrawPath(agent.path.corners);
         }
         yield return(new WaitForSeconds(0.25f));
     }
 }
Пример #2
0
 // TODO: Add the possibility to draw multiple paths.
 // Right now this just routes to the one existing
 // path.
 public void DrawPath(Vector2Int[] path)
 {
     pathRenderer.DrawPath(path);
 }