|
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
|
|
|
|
public class PathwayGizmos |
|
|
|
public class PathwayGizmos |
|
|
|
|
|
|
|
|
|
|
|
DrawHandlesPath(pathway); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
Vector3 textHeight = Vector3.up; |
|
|
|
Vector3 textHeight = Vector3.up; |
|
|
|
|
|
|
|
style.normal.textColor = pathway.TextColor; |
|
|
|
style.fontSize = pathway.TextSize; |
|
|
|
|
|
|
|
|
|
|
private static void DrawHandlesPath(Pathway pathway) |
|
|
|
{ |
|
|
|
if (pathway.Waypoints.Count != 0) { |
|
|
|
if (pathway.Waypoints.Count != 0) |
|
|
|
{ |
|
|
|
DrawElements(pathway, pathway.Waypoints, 0); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
Handles.DrawDottedLine(pathway.Waypoints[i - 1], pathway.Waypoints[i], 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|