Ejemplo n.º 1
0
 void Initialize()
 {
     for (int i = 0; i < createFloorSetCount; ++i)
     {
         floorGenerator.CreateFloor(floorStartPos + floorSetMargin * i);
     }
 }
Ejemplo n.º 2
0
    // START AND UPDATE:
    void Start()
    {
        floorGenerator = GetComponent<FloorGenerator> ();
        sceneryGenerator = GetComponent<SceneryGenerator> ();

        floorGenerator.Start ();
        sceneryGenerator.Start ();

        cellTypeGrid = new CellType[numCellsX, numFloors, numCellsZ];
        floors = new Floor[numFloors];

        FillDungeon();

        floorGenerator.CreateFloor();
    }