Commit 96e30b20 authored by limingzhe's avatar limingzhe

fix: 回复原状态

parent b9c7f3a1
......@@ -184,20 +184,19 @@ 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.clearDragonDisplayAssetList3();
await asyncDelay(5);
// 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.loadBundleLock = true; // 加锁
this.currentBundleInfo = { sceneName, version, bondleUrl };
......@@ -233,11 +232,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;
// // }
......@@ -430,33 +429,6 @@ export abstract class middleLayerBase extends cc.Component {
}
// this.assetList = randomSortByArr(this.assetList);
// this.atlasList[0] = this.atlasList[7];
// this.assetList[0] = this.assetList[7];
// this.nodeList[0] = this.nodeList[7]
// this.textureList[0] = this.textureList[7];
// this.atlasList.length = this.assetList.length = this.nodeList.length = this.textureList.length = 1;
// [ ...this.assetList ].forEach(asset => {
// console.log('asset_uuid: ', asset._uuid);
// console.log('asset: ', asset);
// cc.assetManager.releaseAsset(asset);
// });
// [ ...this.atlasList, ...this.assetList ].forEach(asset => {
// console.log('asset_uuid: ', asset._uuid);
// console.log('asset: ', asset);
// while (asset?.refCount > 0) {
// asset.decRef();
// }
// // cc.assetManager.releaseAsset(asset);
// // asset.destroy();
// });
const setParentVisible = (n) => {
n.active = true;
......@@ -518,36 +490,6 @@ export abstract class middleLayerBase extends cc.Component {
// this.textureList.forEach(texture => {
// // console.log('texture_uuid: ', texture._uuid);
// // console.log('texture: ', texture);
// // while (texture?.refCount > 0) {
// // texture.decRef();
// // }
// cc.assetManager.releaseAsset(texture);
// texture.destroy();
// });
// [ ...this.atlasList, ...this.assetList ].forEach(asset => {
// console.log('asset_uuid: ', asset._uuid);
// console.log('asset: ', asset);
// // asset.decRef();
// // while (asset?.refCount > 0) {
// // asset.decRef();
// // }
// cc.assetManager.releaseAsset(asset);
// asset.destroy();
// });
}
......
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