示例#1
0
    private void OnDrawGizmos()
    {
        if (waypoints == null || waypoints.Count <= 1)
        {
            return;
        }

        Gizmos.color = Color.green;
        for (int i = 1; i < waypoints.Count; i++)
        {
            GizmosExtension.DrawArrow(waypoints[i - 1].position, waypoints[i].position);
        }
    }