public Room(RoomPrefabType roomPrefabType, Vector2 startPos) { RoomPrefab = roomPrefabType; StartPostion = startPos; GenerateRoom(); }
public Transform GetPrefab(RoomPrefabType _prefabType) { foreach (var item in _roomPrefabList) { if (item._roomPrefabType == _prefabType) { return(item._prefab); } } return(null); }