Commit 89e407ac authored by limingzhe's avatar limingzhe

fix: debug 清缓存

parent 9564086e
...@@ -428,7 +428,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -428,7 +428,7 @@ export abstract class middleLayerBase extends cc.Component {
} }
}); });
[this.atlasList].forEach(asset => { [...this.atlasList].forEach(asset => {
while (asset?.refCount) { while (asset?.refCount) {
asset?.decRef(); asset?.decRef();
} }
...@@ -436,7 +436,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -436,7 +436,7 @@ export abstract class middleLayerBase extends cc.Component {
asset.destroy(); asset.destroy();
}); });
[this.assetList].forEach(asset => { [...this.assetList].forEach(asset => {
while (asset?.refCount) { while (asset?.refCount) {
asset?.decRef(); asset?.decRef();
} }
......
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