Commit 18148b3d authored by limingzhe's avatar limingzhe

fix: debug

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