public GameObject Board(int width, int height, Vector3 position, Quaternion rotation, Transform parent = null) { GameObject board = UnityEngine.Object.Instantiate(boardPlacer.BoardPrefab, position, rotation, parent); CircuitBoard circuit = board.GetComponent <CircuitBoard>(); circuit.x = width; circuit.z = height; circuit.CreateCuboid(); StuffPlacer.DestroyIntersectingConnections(board); DestroyInvalidWiresOnBoard(board); MegaMesh.AddMeshesFrom(board); MegaBoardMeshManager.AddBoardsFrom(board); SetChildCircuitsMegaMeshStatus(board, true); return(board); }