public void SetTileSpace(TileScript tile) { tile.spaceInUse = true; for (int i = 0; i < listOfBlockedOffAreas.Count; i++) { int row = (int)listOfBlockedOffAreas[i].x + tile.GetRowNum(); int col = (int)listOfBlockedOffAreas[i].y + tile.GetColNum(); TileScript newTile = GrabTile(row, col); if (newTile != null) { newTile.spaceInUse = true; } } }
public void ExposeTileArea(TileScript tile) { tile.TurnOnTile(); for (int i = 0; i < listOfBlockedOffAreas.Count; i++) { int row = (int)listOfBlockedOffAreas[i].x + tile.GetRowNum(); int col = (int)listOfBlockedOffAreas[i].y + tile.GetColNum(); TileScript newTile = GrabTile(row, col); if (newTile != null) { newTile.TurnOffTile(); } } }