public void ComputeAdjacencyLists(Tiles targetC, int ResetAll) { foreach (GameObject tile in tiles) { Tiles t = tile.GetComponent <Tiles>(); t.CheckNeighbours(halfHeight, targetC, ResetAll); } }