Commit 18148b3d authored by limingzhe's avatar limingzhe

fix: debug

parent ecb3e380
...@@ -184,17 +184,17 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -184,17 +184,17 @@ export abstract class middleLayerBase extends cc.Component {
// return; // return;
// } // }
// this.assetList = []; this.assetList = [];
// this.textureList = []; this.textureList = [];
// this.assetObj = {}; this.assetObj = {};
// this.atlasList = []; this.atlasList = [];
// this.nodeList = []; this.nodeList = [];
// console.log('汪汪汪: getDragonDisplayAssetList'); console.log('汪汪汪: getDragonDisplayAssetList');
// this.getDragonDisplayAssetList(cc.find('Canvas')); this.getDragonDisplayAssetList(cc.find('Canvas'));
// console.log('喵喵喵1: ' + this.nodeList.length); console.log('喵喵喵1: ' + this.nodeList.length);
// console.log('喵喵喵2: ' + this.atlasList.length); console.log('喵喵喵2: ' + this.atlasList.length);
// console.log('喵喵喵3: ' + this.assetList.length); console.log('喵喵喵3: ' + this.assetList.length);
// console.log('喵喵喵4: ' + this.textureList.length); console.log('喵喵喵4: ' + this.textureList.length);
...@@ -237,11 +237,11 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -237,11 +237,11 @@ export abstract class middleLayerBase extends cc.Component {
middleLayer.scale = canvas.width / middleLayer.width; middleLayer.scale = canvas.width / middleLayer.width;
// const destroyer = cc.instantiate(cc.find('middleLayer/Destroyer')); const destroyer = cc.instantiate(cc.find('middleLayer/Destroyer'));
// // if (destroyer) { // if (destroyer) {
// destroyer.parent = cc.find('Canvas'); destroyer.parent = cc.find('Canvas');
// destroyer.active = true; destroyer.active = true;
// // } // }
...@@ -421,7 +421,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -421,7 +421,7 @@ export abstract class middleLayerBase extends cc.Component {
async clearDragonDisplayAssetList3() { async clearDragonDisplayAssetList() {
console.log('喵喵喵: clearDragonDisplayAssetList'); console.log('喵喵喵: clearDragonDisplayAssetList');
console.log('喵喵喵: ' + this.nodeList.length); console.log('喵喵喵: ' + this.nodeList.length);
...@@ -450,8 +450,11 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -450,8 +450,11 @@ export abstract class middleLayerBase extends cc.Component {
// node.removeFromParent(); // node.removeFromParent();
}); });
await asyncDelay(0.001); console.log("this.atlasList.length 1: ", this.atlasList.length);
// await asyncDelay(0.001);
console.log("this.atlasList.length: ", this.atlasList.length);
for (let i=0; i<this.atlasList.length; i++) { for (let i=0; i<this.atlasList.length; i++) {
const atlas = this.atlasList[i]; const atlas = this.atlasList[i];
const asset = this.assetList[i]; const asset = this.assetList[i];
...@@ -471,7 +474,9 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -471,7 +474,9 @@ export abstract class middleLayerBase extends cc.Component {
texture.decRef(); texture.decRef();
await asyncDelay(0.001); console.log('aaaaa~');
// await asyncDelay(0.001);
} }
...@@ -499,8 +504,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -499,8 +504,7 @@ export abstract class middleLayerBase extends cc.Component {
} }
// 原始方法 // 原始方法
clearDragonDisplayAssetList2() { clearDragonDisplayAssetList3() {
console.log('喵喵喵: clearDragonDisplayAssetList'); console.log('喵喵喵: clearDragonDisplayAssetList');
console.log('喵喵喵: ' + this.nodeList.length); console.log('喵喵喵: ' + this.nodeList.length);
...@@ -525,7 +529,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -525,7 +529,7 @@ export abstract class middleLayerBase extends cc.Component {
} }
clearDragonDisplayAssetList() { clearDragonDisplayAssetList2() {
return; return;
console.log('喵喵喵: clearDragonDisplayAssetList'); console.log('喵喵喵: clearDragonDisplayAssetList');
......
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