/// <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)); } }
// 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); }