コード例 #1
0
    public bool HasConnected(Vector3 posEnd)
    {
        BigPoint end = graph.GetPointByPos(posEnd);

        if (end == null)
        {
            return(false);
        }
        foreach (var item in selected)
        {
            BigPoint begin = graph.GetPointByPos(item.transform.position);
            if (graph.HasConnected(begin, end) == false)
            {
                return(false);
            }
        }
        return(true);
    }