Exemplo n.º 1
0
    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);
            }
        }
    }
Exemplo n.º 2
0
        public void SetBomb()
        {
            IsBomb = true;

            NearCells.ForEach(x => x.NearBombsCount++);
        }