private void SpawnRoom(Direction dir) { if (currentRoomPrefab != null) { Destroy(currentRoomPrefab); } currentRoom = GetRandomRoom(dir); mainCamera.transform.position = currentRoom.cameraPosition; mainCamera.transform.eulerAngles = currentRoom.cameraRotation; currentRoomPrefab = Instantiate(currentRoom.gameObject); Compass.ChangeDirection(currentRoom.whatIsNorth); }