C# Class WorldBuilder, DoomRoom

Inheritance: MonoBehaviour
Show file Open project: EddieCameron/DoomRoom Class Usage Examples

Public Properties

Property Type Description
wallEndPrefab Transform
wallPrefabs Transform[]

Public Methods

Method Description
BuildWalls ( ) : void
CreateWall ( Cell, cellA, Direction, inDirection, int prefabID ) : void

Instantiates a wall between two cells.

CreateWallCap ( Cell, onCell, bool southEast ) : void

Creates a wall cap.

Start ( ) : void

Method Details

BuildWalls() public method

public BuildWalls ( ) : void
return void

CreateWall() public method

Instantiates a wall between two cells.
public CreateWall ( Cell, cellA, Direction, inDirection, int prefabID ) : void
cellA Cell, /// Cell a. ///
inDirection Direction,
prefabID int
return void

CreateWallCap() public method

Creates a wall cap.
public CreateWallCap ( Cell, onCell, bool southEast ) : void
onCell Cell, /// On cell. ///
southEast bool /// Whether cap is on south east corner of cell or north west. ///
return void

Start() public method

public Start ( ) : void
return void

Property Details

wallEndPrefab public property

public Transform wallEndPrefab
return Transform

wallPrefabs public property

public Transform[] wallPrefabs
return Transform[]