Cell[] cellPool; //shortcut to cell pool

        public GraphDeserializer(SerializedGraph serializedGraph, NavmeshLayerDeserializer deserializer)
        {
            this.serializedGraph = serializedGraph;
            this.deserializer    = deserializer;
            targetGraph          = new Graph();

            //nodes = new Node[this.serializedGraph.serializedNodes.Count];
            //edges = new EdgeGraph[this.serializedGraph.serializedEdges.Count];

            cellPool = deserializer.cellPool;
        }
Example #2
0
        Cell[] cellPool; //shortcut to cell pool

        public GraphDeserializer(SerializedGraph serializedGraph, NavmeshLayerDeserializer deserializer, AgentProperties properties)
        {
            this.serializedGraph = serializedGraph;
            this.deserializer    = deserializer;
            targetGraph          = new Graph(serializedGraph.chunkData, properties);

            //nodes = new Node[this.serializedGraph.serializedNodes.Count];
            //edges = new EdgeGraph[this.serializedGraph.serializedEdges.Count];

            cellPool = deserializer.cellPool;
        }