void CreateVerticesAndAssignToCells() { for (int i = 0; i < patchSize * subDivs + 1; i++) { for (int j = 0; j < patchSize * subDivs + 1; j++) { NearCells nc = GetNearCells(j, i); vertsInStack.Clear(); for (int k = 0; k < nc.Count; k++) { HexXY cellCoords = nc.GetByIndex(k); MapCell cell = map.GetCell(mapOffsetX + cellCoords.x, mapOffsetY + cellCoords.y); AddNearCellVertices(i, j, cellCoords, cell); } AddWallInfo(i, j); } } }
public void SetBomb() { IsBomb = true; NearCells.ForEach(x => x.NearBombsCount++); }