Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public void SetPath(TruePath path)
 {
     Debug.Log($"PathFollower: path set with {path.GetPositions().Length} points");
     m_path = path;
     m_time = 0.0f;
 }