Commit fcd06702 authored by limingzhe's avatar limingzhe

fix: debug

parent 022d9d3d
...@@ -1155,7 +1155,7 @@ cc.Class({ ...@@ -1155,7 +1155,7 @@ cc.Class({
console.log(' in initDebugLayer'); console.log(' in initDebugLayer');
const layer = new cc.Node(); const layer = new cc.Node();
if (this.data.isDebug || true) { if (this.data.isDebug) {
layer.parent = cc.find('Canvas'); layer.parent = cc.find('Canvas');
} }
...@@ -2972,7 +2972,7 @@ cc.Class({ ...@@ -2972,7 +2972,7 @@ cc.Class({
} }
const colorRect = this.getColorRect(rect, "purple"); const colorRect = this.getColorRect(rect, "purple");
colorRect.labelText = content; colorRect.labelText = content;
this.debugDrawLayer.addChild(colorRect); // this.debugDrawLayer.addChild(colorRect);
// console.log('colorRect: ', colorRect); // console.log('colorRect: ', colorRect);
...@@ -2980,7 +2980,7 @@ cc.Class({ ...@@ -2980,7 +2980,7 @@ cc.Class({
label.x = colorRect.x + colorRect.width / 2 * colorRect.scaleX; label.x = colorRect.x + colorRect.width / 2 * colorRect.scaleX;
label.y = colorRect.y - colorRect.height / 2 //* colorRect.scaleY; label.y = colorRect.y - colorRect.height / 2 //* colorRect.scaleY;
label.color = cc.Color.GREEN; 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