var ctx = node.getComponent(cc.Graphics);
ctx.miterLimit = cc.Graphics.miterLimit.ROUND; -->编译报错,应该是赋值一个number把。
ctx.moveTo(20,20);
ctx.lineTo(100,50);
ctx.lineTo(20,100);
ctx.stroke();
en,是写错了,感谢指正
var ctx = node.getComponent(cc.Graphics);
ctx.miterLimit = cc.Graphics.miterLimit.ROUND; -->编译报错,应该是赋值一个number把。
ctx.moveTo(20,20);
ctx.lineTo(100,50);
ctx.lineTo(20,100);
ctx.stroke();
en,是写错了,感谢指正