Commit 87e07148 authored by 李帅's avatar 李帅

修改onDestroy 处理课件内节点出错

parent 029caa9f
{
"ver": "1.1.2",
"uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
{"ver":"1.1.2","uuid":"c35bb2f6-f24a-4850-ae44-643f2fdc7541","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
/*
* @Author: ls
* @Date: 2022-03-09 21:15:44
* @LastEditTime: 2022-03-16 09:04:41
* @LastEditTime: 2022-03-16 10:49:48
* @LastEditors: ls
* @Description: 蛋糕
* @FilePath: \cake\assets\cake\scene\cake.ts
......@@ -1046,9 +1046,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
onDestroy() {
let all_right = cc.find('all_right', this.node);
let dragonBones_all_right = all_right.getComponent(dragonBones.ArmatureDisplay);
dragonBones_all_right.off(dragonBones.EventObject.COMPLETE);
// let all_right = cc.find('all_right', this.node);
// let dragonBones_all_right = all_right.getComponent(dragonBones.ArmatureDisplay);
// dragonBones_all_right.off(dragonBones.EventObject.COMPLETE);
}
playLocalAudio(audioName) {
......
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