public override void OnInspectorGUI() { pfo = (PathFindingObject)target; drawStats(); DrawButtons(); base.OnInspectorGUI(); }
/// <summary> /// Create a path arrow along the path /// </summary> /// <param name="po"> The pathfinding object that we want to draw the lines for</param> void CreatePathArrow(PathFindingObject po) { for (int i = 0; i < po.PathNodes.Count - 1; i++) { if (i != 0) { Debug.DrawLine(po.PathNodes[i].Position, po.PathNodes[i + 1].Position, po.pathColor); } } }