private void GenerateGameObjectsForLiquidTiles() { //Now that we have found the tiles that we want to turn into water, we need to regenerate game objects for them and make them water for (int x = 0; x < board.GetCols(); x++) { for (int y = 0; y < board.GetRows(); y++) { if (board.GetGrid()[x][y].IsMarked()) { GameObject instance = Instantiate(board.GetTileObject(), new Vector3(board.GetGrid()[x][y].GetUnityXPosition(), board.GetGrid()[x][y].GetUnityYPosition(), 0.0f), Quaternion.identity, container); board.GetGrid()[x][y].SetObject(instance); instance.name = "(" + x + "," + y + ")"; SetUpWaterTileSettings(board.GetGrid()[x][y]); } } } }