SELAB3 Unity
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
WallBuilder Class Reference

Script on the main manipulator to build walls and remove them More...

Inheritance diagram for WallBuilder:

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
 

Detailed Description

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

Member Function Documentation

◆ BuildWall()

void WallBuilder.BuildWall ( List< List< bool > >  wall)
inline

Build one wall. Subsequent walls will be placed at distanceBetweenWalls from this one

Parameters
wall2D List of bool representing the wall. true meaning there is a tile on that 'coordinate/index' and false meaning there is not

The documentation for this class was generated from the following file: