Esempio n. 1
0
    private void InstantiateBaseRoom(Vector2Int generationStartPosition)
    {
        Room buffer = Instantiate(_roomsUsed.GetBaseRoom());

        //We put it at 7;0 (the down center)
        buffer.SetPosition(generationStartPosition);

        //We add this room to the grid, to available room and level created
        _grid.AddRoomToLevel(buffer);

        _levelCreated.Add(buffer);
        _levelCreatedUsed.Add(buffer);
        _availablePlaces.AddRange(buffer.GetAllAvailableNeighbourPlaces());
    }