用了cc.rect();
可是在setColor的时候出错,提示setColor is not a function
求教大神
用了cc.rect();
可是在setColor的时候出错,提示setColor is not a function
求教大神
var layer = new cc.LayerColor(cc.color(255,0,0),100,100);
layer.setPosition(50,50);
this.addChild(layer,100);
谢谢谢谢谢谢
setColor()没有代码补全,不知道是不是不能用 
setColor我记得好像是针对UIWidget有这个方法吧