VertexNavigation.OnDrawGizmos C# (CSharp) Method

OnDrawGizmos() public method

Raises the draw gizmos event to draw the available nodes.
public OnDrawGizmos ( ) : void
return void
    void OnDrawGizmos()
    {
        if(this.showGroundNodes)
        {
            Gizmos.color = Color.red;
            foreach(Vector3 vert in this.vertices)
            {
                Gizmos.DrawCube(vert, POINT2_X3);
            }
        }

        if(this.showFlyingNodes)
        {
            Gizmos.color = Color.green;
            foreach(Vector3 vert in this.flyingVertices)
            {
                Gizmos.DrawCube(vert, POINT2_X3);
            }
        }
    }