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(); } }
public void SetBossRoom() { this.floorPath = bossFloors.GenerateRandomFloorPath(); this.isBossRoom = true; }