Пример #1
0
        private void UnrenderRing(CubeCoords playerCoords, int radius)
        {
            CubeCoords coords = new CubeCoords(playerCoords.x, playerCoords.y + radius);

            for (int i = 0; i < 6; i++)
            {
                for (int j = 0; j < radius; j++)
                {
                    coords.x += HexMath.Directions[i, 0];
                    coords.y += HexMath.Directions[i, 1];
                    if (HexMath.HexDistance(playerCoords.x, playerCoords.y, coords.x, coords.y) >= Fow)
                    {
                        HideHex(coords);
                    }
                }
            }
        }