Exemplo n.º 1
0
        void InstantiateHorizontalOuterWall(float startingX, float endingX, float yCoord, BoardGenerator boardGenerator)
        {
            float currentX = startingX;

            while (currentX <= endingX)
            {
                Vector2 spawnPos = new Vector2(currentX, yCoord);
                boardGenerator.CreateMapEntryFromGrid(borderChar, spawnPos);
                currentX++;
            }
        }
Exemplo n.º 2
0
        void InstantiateVerticalOuterWall(float xCoord, float startingY, float endingY, BoardGenerator boardGenerator)
        {
            float currentY = startingY;

            while (currentY <= endingY)
            {
                Vector2 spawnPos = new Vector2(xCoord, currentY);
                boardGenerator.CreateMapEntryFromGrid(borderChar, spawnPos);
                currentY++;
            }
        }