C# Class RoomGenerator

Inheritance: MonoBehaviour
Datei anzeigen Open project: TheJP/GlobalGameJam2016 Class Usage Examples

Public Properties

Property Type Description
cellsParent Transform
floorPrefab GameObject
height int
itemPrefabs GameObject[]
wallPrefab GameObject
width int

Public Methods

Method Description
GenerateGrid ( ) : List

Cretes room floor and walls.

Private Methods

Method Description
GetWallType ( Cell, cell ) : WallType?
SpawnItems ( List cells ) : void

Spawns items of all targets in the room.

SpawnRunes ( List cells ) : void

Spawns run places for every posible target.

WallBonus ( WallType wallType, WallType reference ) : int

Method Details

GenerateGrid() public method

Cretes room floor and walls.
public GenerateGrid ( ) : List
return List

Property Details

cellsParent public_oe property

public Transform cellsParent
return Transform

floorPrefab public_oe property

public GameObject floorPrefab
return GameObject

height public_oe property

public int height
return int

itemPrefabs public_oe property

public GameObject[] itemPrefabs
return GameObject[]

wallPrefab public_oe property

public GameObject wallPrefab
return GameObject

width public_oe property

public int width
return int