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