示例#1
0
        private BakeNode CreateBakeNodeAt(RectCoord offset)
        {
            BakeDrawingBoard drawingBoard = CreateGameObject <BakeDrawingBoard>("LandformBakeDrawingBoard");

            drawingBoard.transform.position = ChunkInfo.ToLandformPixel(offset);
            return(new BakeNode(offset, drawingBoard));
        }
示例#2
0
            public BakeNode(RectCoord offset, BakeDrawingBoard drawingBoard)
            {
                if (drawingBoard == null)
                {
                    throw new ArgumentNullException(nameof(drawingBoard));
                }

                Offset       = offset;
                DrawingBoard = drawingBoard;
            }