Commit 071e9e98 authored by limingzhe's avatar limingzhe

fix: debug

parent 56ed4a96
...@@ -191,7 +191,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -191,7 +191,7 @@ export abstract class middleLayerBase extends cc.Component {
this.nodeList = []; this.nodeList = [];
console.log('汪汪汪: getDragonDisplayAssetList'); console.log('汪汪汪: getDragonDisplayAssetList');
this.getDragonDisplayAssetList(cc.find('Canvas')); this.getDragonDisplayAssetList(cc.find('Canvas'));
this.toCleanParent(); // this.toCleanParent();
console.log('喵喵喵1: ' + this.nodeList.length); console.log('喵喵喵1: ' + this.nodeList.length);
console.log('喵喵喵2: ' + this.atlasList.length); console.log('喵喵喵2: ' + this.atlasList.length);
...@@ -215,7 +215,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -215,7 +215,7 @@ export abstract class middleLayerBase extends cc.Component {
// this.clearDragonDisplayAssetList(); // this.clearDragonDisplayAssetList();
await asyncDelay(0.001); // await asyncDelay(0.001);
// 手机端强制垃圾回收 // 手机端强制垃圾回收
if (cc.sys.os == cc.sys.OS_IOS || cc.sys.os == cc.sys.OS_ANDROID) { if (cc.sys.os == cc.sys.OS_IOS || cc.sys.os == cc.sys.OS_ANDROID) {
...@@ -493,10 +493,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -493,10 +493,7 @@ export abstract class middleLayerBase extends cc.Component {
} }
this.nodeList.length = 0;
this.atlasList.length = 0;
this.assetList.length = 0;
this.assetList.length = 0;
// [ ...this.atlasList , ...this.assetList].forEach(asset => { // [ ...this.atlasList , ...this.assetList].forEach(asset => {
......
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