Esempio n. 1
0
 void Start()
 {
     if (completedRooms == null)
     {
         List <RoomObject> rooms = roomSelector.selectRooms();
         completedRooms = instaniateRooms(rooms);
         completedRooms = npcGenerator.generateNPCs(completedRooms);
     }
     else
     {
         completedRooms = instaniateRooms(completedRooms);
         npcGenerator.regenerateNPCs(completedRooms);
     }
     floorGenerator.generateFloor(completedRooms);
     roofGenerator.generateRoof(completedRooms);
     wallGenerator.generateWalls(completedRooms);
     roomSetup.setupEachRoom(completedRooms);
     blockageGenerator.generate(completedRooms);
 }