public scConvertTo3D(ArrayList cellList, List <scVertexNode> _roomList, scPrims thePrimController) { Camera.main.gameObject.AddComponent <scGameplayCamera>(); Camera.main.transform.position = new Vector3(0, 20, 0); //temp object to parent all cells in GameObject groupCell = new GameObject(); groupCell.name = "AllCells"; foreach (GameObject aRoom in cellList) { aRoom.transform.parent = groupCell.gameObject.transform; } foreach (scVertexNode aNode in _roomList) { aNode.getParentCell().AddComponent <scRoom>(); roomList.Add(aNode.getParentCell()); } //transfer the connection data into rooms so each room knows who it is connected too foreach (scEdge aEdge in thePrimController.getConnections()) { aEdge.getNode0().getParentCell().GetComponent <scRoom>().addConnection(aEdge.getNode1().getParentCell()); aEdge.getNode1().getParentCell().GetComponent <scRoom>().addConnection(aEdge.getNode0().getParentCell()); } //rotate all cells to be on correct axis, no longer working in 2D groupCell.transform.eulerAngles = new Vector3(90, 0, 0); }