Exemplo n.º 1
0
    public Room(Vector2 _gridPos, bool top, bool bottom, bool left, bool right)
    {
        gridPos         = _gridPos;
        this.top        = top;
        this.bottom     = bottom;
        this.left       = left;
        this.right      = right;
        this.isBossRoom = false;
        this.isCleared  = false;

        // RoomType
        if (Random.value <= 0.75f)
        {
            roomType       = RoomType.LargeStandard;
            this.floorPath = largeStandardFloors.GenerateRandomFloorPath();
        }
        else
        {
            roomType       = RoomType.Standard;
            this.floorPath = standardFloors.GenerateRandomFloorPath();
        }
    }
Exemplo n.º 2
0
 public void SetBossRoom()
 {
     this.floorPath  = bossFloors.GenerateRandomFloorPath();
     this.isBossRoom = true;
 }