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++; } }
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++; } }