Пример #1
0
    protected void propagateRelationWith(MapPoint point, List <GridCluster> relatedClusters)
    {
        if (this.parent != null)
        {
            //Debug.Log("El padre NO es NULL");

            /*if (parent.getCenter().isCluster())
             *  Debug.Log("El padre SI es un cluster");
             * else
             *  Debug.Log("El padre NO es un cluster");
             */
            List <GridCluster> parentRelatedClusters = new List <GridCluster>();
            foreach (GridCluster cluster in relatedClusters)
            {
                if (!parentRelatedClusters.Contains(cluster.parent) && cluster.parent != parent)
                {
                    parentRelatedClusters.Add(cluster.parent);
                }
            }
            parent.addRelationsPerPoint(point, parentRelatedClusters);
        }

        /*else
         *  Debug.Log("El padre SI es NULL");*/
    }