示例#1
0
    public bool addNodeForCurrentLineAtPosition(Vector3 position)
    {
        Debug.Log("AddNode at pos");
        m_activeTransportLine.addNewNode(position);

        /*
         * Can lay a node if:
         * Grid square is blank
         * Grid square intersects node of another line.  Add existing node to list, don't create a new one.
         * Grid square intersects other end if our own line
         */
        return(true);
    }