Responsible for spawning the outer walls, towers, and gate around the map boundary.
More...
|
| | WallSpawner (List< WallsSetup > walls, Terrain terrain, int tileSize, int mapWidthInTiles, int mapLengthInTiles) |
| | Initializes a new instance of the WallSpawner class.
|
| |
| GameObject | SpawnWalls (Tile[,] tiles) |
| | Spawns the perimeter walls, towers, and gate around the map.
|
| |
Responsible for spawning the outer walls, towers, and gate around the map boundary.
◆ WallSpawner()
| WallSpawner.WallSpawner |
( |
List< WallsSetup > |
walls, |
|
|
Terrain |
terrain, |
|
|
int |
tileSize, |
|
|
int |
mapWidthInTiles, |
|
|
int |
mapLengthInTiles |
|
) |
| |
Initializes a new instance of the WallSpawner class.
- Parameters
-
| walls | List of wall prefabs with their configurations. |
| terrain | Terrain reference for height sampling. |
| tileSize | Size of a single tile in world units. |
| mapWidthInTiles | Number of tiles in width. |
| mapLengthInTiles | Number of tiles in length. |
◆ SpawnWalls()
| GameObject WallSpawner.SpawnWalls |
( |
Tile |
tiles[,] | ) |
|
Spawns the perimeter walls, towers, and gate around the map.
- Parameters
-
| tiles | 2D tile array of the map. |
- Returns
- Parent GameObject containing all wall elements.
The documentation for this class was generated from the following file: