Commit 2e32598d authored by liujiangnan's avatar liujiangnan

debug

parent ea301bff
const { ccclass, property } = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
@property
animationName: string = 'normal';
start() {
this.node.getComponent(dragonBones.ArmatureDisplay).on(dragonBones.EventObject.COMPLETE, () => {
this.node.getComponent(dragonBones.ArmatureDisplay).playAnimation(this.animationName, -1);
});
}
}
{
"ver": "1.0.8",
"uuid": "c797193d-68a6-46be-805a-93584ea51639",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -1295,6 +1295,15 @@ export default class NewClass extends middleLayerBase { ...@@ -1295,6 +1295,15 @@ export default class NewClass extends middleLayerBase {
this.loadOnlineBundle('NJ_MonkyTree'); this.loadOnlineBundle('NJ_MonkyTree');
} }
// TODO 测试释放资源的效果
if (this.courseItem && this.courseItem.template_name!='NJ_BookTable') {
this.courses.forEach(item => {
const bd = cc.assetManager.getBundle(item.template_name);
bd.releaseAll();
// cc.assetManager.removeBundle(bd);
});
}
} }
this.showConfirm("确定离开吗?", () => { this.showConfirm("确定离开吗?", () => {
exit(); exit();
......
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