Commit fcd06702 authored by limingzhe's avatar limingzhe

fix: debug

parent 022d9d3d
......@@ -1155,7 +1155,7 @@ cc.Class({
console.log(' in initDebugLayer');
const layer = new cc.Node();
if (this.data.isDebug || true) {
if (this.data.isDebug) {
layer.parent = cc.find('Canvas');
}
......@@ -2972,7 +2972,7 @@ cc.Class({
}
const colorRect = this.getColorRect(rect, "purple");
colorRect.labelText = content;
this.debugDrawLayer.addChild(colorRect);
// this.debugDrawLayer.addChild(colorRect);
// console.log('colorRect: ', colorRect);
......@@ -2980,7 +2980,7 @@ cc.Class({
label.x = colorRect.x + colorRect.width / 2 * colorRect.scaleX;
label.y = colorRect.y - colorRect.height / 2 //* colorRect.scaleY;
label.color = cc.Color.GREEN;
this.debugDrawLayer.addChild(label);
// this.debugDrawLayer.addChild(label);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment