private int paintOceanTiles(List <GameTile> tiles, TileTypeSettings settings) { int numOceanTiles = 0; for (int i = 0; i < tiles.Count; i++) { if (settings.IsOceanTileBySettings(tiles [i])) { hexSettings.assignTileTypeToHex(tiles[i], TileType.Ocean); tiles[i].transform.FindChild("Dice Value").gameObject.SetActive(false); tiles [i].atIslandLayer = true; numOceanTiles++; } } return(numOceanTiles); }
private int paintOceanTiles(List <GameTile> tiles) { int numOceanTiles = 0; for (int i = 0; i < tiles.Count; i++) { if (boardSettings.IsOceanTileBySettings(tiles [i])) { boardSettings.assignTileTypeToHex(tiles[i], TileType.Ocean); //MonoBehaviour.Destroy (tiles[i].transform.FindChild ("Dice Value").gameObject); tiles[i].transform.FindChild("Dice Value").gameObject.SetActive(false); numOceanTiles++; } } return(numOceanTiles); }