I currently have a row a column saved by using the following two lines of code:
private List<Tile[]> columns = new List<Tile[]>();
private List<Tile[]> rows = new List<Tile[]>();
Is there a way to create a variable that can take the column and index so that I can get the location of where the user clicked? Something like this:
indexOfClick = [row, column];
EDIT: How I'm adding a column and row:
columns.Add(new Tile[]{AllTiles[0, 0], AllTiles[1, 0], AllTiles[2, 0], AllTiles[3, 0] });
rows.Add(new Tile[]{AllTiles[0, 0], AllTiles[0, 1], AllTiles[0, 2], AllTiles[0, 3] });