コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: Serializer.cs プロジェクト: mgood7123/Bullet-Time
        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;
        }