public void SetLineRenderer() { if (currPath.lines.Count == 0) { pathVisualizer.positionCount = 0; return; } Vector3[] array = currPath.InfoToVectorArray(); pathVisualizer.positionCount = array.Length; pathVisualizer.SetPositions(currPath.InfoToVectorArray()); }
public override void Init(int f) { base.Init(f); if (path.lines.Count == 0) { line.positionCount = 0; return; } Vector3[] array = path.InfoToVectorArray(); line.positionCount = array.Length; line.SetPositions(path.InfoToVectorArray()); }