void CreateSpecialRoom(RoomController specialRoomController, GameObject[] layouts, ref bool roomType, GameObject icon, bool isOpen) { int roomLayout = Random.Range(0, layouts.Length); specialRoomController.ChangeLayout(layouts[roomLayout]); roomType = true; specialRoomController.AddMapDetail(icon); if (isOpen) { specialRoomController.roomCleared = true; StartCoroutine(specialRoomController.ChangeDoors(true)); } }