Beispiel #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();
        }
Beispiel #2
0
 public GrapthTools()
 {
     generatePath = GenerateGraph.generateGraph;
 }