Commit f1ed82e5 authored by liujiangnan's avatar liujiangnan

debug

parent 35d15bac
...@@ -507,13 +507,12 @@ export default class NewClass extends middleLayerBase { ...@@ -507,13 +507,12 @@ export default class NewClass extends middleLayerBase {
(<any>window).courseware.freeAllOcMethod(); (<any>window).courseware.freeAllOcMethod();
// cc.assetManager.releaseAll(); // cc.assetManager.releaseAll();
const bd = cc.assetManager.getBundle(this.oldSceneName); // const bd = cc.assetManager.getBundle(this.oldSceneName);
bd.releaseAll(); // bd.releaseAll();
cc.assetManager.removeBundle(bd); // cc.assetManager.removeBundle(bd);
cc.assetManager.assets.forEach(item => { cc.assetManager.assets.forEach(item => {
if(item.nativeUrl.indexOf("http")>-1) { if(item.nativeUrl.indexOf("http")>-1) {
item.decRef();
cc.assetManager.releaseAsset(item); cc.assetManager.releaseAsset(item);
} }
}); });
......
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