Exemple #1
0
        public override void GetConnection(Action <NavNode> action)
        {
            GridGraph      graph = GridGraph.GetGridGraph(GraphIndex);
            List <NavNode> nodes = new List <NavNode>();

            graph.GetNeighbor(NodeIndex, nodes);
            for (int i = 0; i < nodes.Count; i++)
            {
                if (nodes[i] == null)
                {
                    continue;
                }
                action(nodes[i]);
            }
        }
Exemple #2
0
        public override void GetNeighbor(List <NavNode> list)
        {
            GridGraph graph = GridGraph.GetGridGraph(GraphIndex);

            graph.GetNeighbor(NodeIndex, list);
        }