Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        int numTilesPerRow = terrainTiles.width / tileResolution;
        int numRows        = terrainTiles.height / tileResolution;

        tileDataMap = new TDMap(size_x, size_z, terrainTiles, numRows, numTilesPerRow);

        PathSearch tempPathSearch = (PathSearch)FindObjectOfType(typeof(PathSearch));

        tempPathSearch.SetTileNodeList(tileDataMap.Tiles, size_x);

        BuildMesh();
    }