Commit 1faebbed authored by liujiangnan's avatar liujiangnan

debug

parent 9bf621c9
......@@ -510,7 +510,11 @@ export default class NewClass extends middleLayerBase {
const bd = cc.assetManager.getBundle(this.oldSceneName);
bd.releaseAll();
cc.assetManager.removeBundle(bd);
cc.assetManager.assets.forEach(item => {
if(item.nativeUrl.indexOf("http")>-1) {
cc.assetManager.releaseAsset(item);
}
});
cc.director.loadScene("middleLayer_for_debug", (err, scene) => {
this.showUI();
// 手机端强制垃圾回收
......
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