Beispiel #1
0
        static public void DrawPath(IEnumerable <Vector3> path, float point_size = 0.0f)
        {
            path.ProcessConnections((v1, v2) => Gizmos.DrawLine(v1, v2));

            if (point_size > 0.0f)
            {
                path.Process(v => GizmosExtensions.DrawPoint(v, point_size));
            }
        }
Beispiel #2
0
 private void OnDrawGizmos()
 {
     Gizmos.color = Color.red;
     targets.Process(t => GizmosExtensions.DrawPoint(t.GetSpacarPosition()));
 }