SELAB3 Unity
|
Script on the main manipulator to build walls and remove them More...
Public Member Functions | |
void | ClearWalls () |
Remove all walls placed | |
void | BuildWall (List< List< bool > > wall) |
Build one wall. Subsequent walls will be placed at distanceBetweenWalls from this one More... | |
Public Attributes | |
GameObject | wallTilePrefab |
Prefab instantiated by Unity representing one tile of the wall | |
Script on the main manipulator to build walls and remove them
The first wall will be built on a certain distance from the anchor. Every subsequent wall will be built on a certain distance from the previous wall
When removing walls, all walls are removed at one time
Walls are represented by a 2D array of booleans, true meaning there is a tile on that 'coordinate/index' and false meaning there is not
|
inline |
Build one wall. Subsequent walls will be placed at distanceBetweenWalls from this one
wall | 2D List of bool representing the wall. true meaning there is a tile on that 'coordinate/index' and false meaning there is not |