private Tile SelectPadTile(Vector2Int loc, int[,] padGrid) { int[,] neighbours = GridMath.GetNeighbours(padGrid, loc); string gridType = GridMath.Comparison(neighbours, GridMath.PadComparisonGrids, 1); if (gridType != null) { return(_padTiles[gridType]); } return(_wallTiles["wall"]); }
private Tile SelectWallTile(Vector2Int loc, int[,] collideGrid) { int[,] neighbours = GridMath.GetNeighbours(collideGrid, loc); string gridType = GridMath.Comparison(neighbours, GridMath.WallComparisonGrids); if (gridType != null) { return(_wallTiles[gridType]); } return(_wallTiles["wall"]); }