public void SetPath(TruePath path) { var lineRenderer = GetComponent <LineRenderer>(); var positions = path.GetPositions(); lineRenderer.positionCount = positions.Length; lineRenderer.SetPositions(positions); m_currentColor = m_normalColor; UpdateColor(); }
public void SetPath(TruePath path) { Debug.Log($"PathFollower: path set with {path.GetPositions().Length} points"); m_path = path; m_time = 0.0f; }