コード例 #1
0
        public override void OnInspectorGUI()
        {
            pfo = (PathFindingObject)target;

            drawStats();
            DrawButtons();
            base.OnInspectorGUI();
        }
コード例 #2
0
 /// <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);
         }
     }
 }