示例#1
0
        void Awake()
        {
            generateGraph = (generateGraph == null)
                            ? this
                            : generateGraph;



            tileOffset = .5f;
            bounds     = tilemap.cellBounds;
            offset     = bounds.position;
            tile       = tilemap.GetTilesBlock(bounds);
            myTile     = new MyTile[bounds.size.x, bounds.size.y];

            GenerateGrapthArray();
            AddPathAndPoint();
            SortTileNeighborsByWeight();
        }
示例#2
0
 public GrapthTools()
 {
     generatePath = GenerateGraph.generateGraph;
 }