Commit fde4fa1e authored by liujiangnan's avatar liujiangnan

fix: 骨骼动画不播放的问题

parent 439fd026
{ {"ver":"1.1.2","uuid":"4f557179-a05f-4891-bac0-6a3d0275c8ce","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
"ver": "1.1.2", \ No newline at end of file
"uuid": "4f557179-a05f-4891-bac0-6a3d0275c8ce",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
...@@ -343,7 +343,7 @@ cc.Class({ ...@@ -343,7 +343,7 @@ cc.Class({
const animaNode = animNode['animaNode']; const animaNode = animNode['animaNode'];
animaNode.x = 500; animaNode.x = 500;
const db = animaNode.getComponent(dragonBones.ArmatureDisplay); const db = animaNode.getComponent(dragonBones.ArmatureDisplay);
const anis = db.getAnimationNames("armatureName"); const anis = db.getAnimationNames(db.armatureName);
db.playAnimation(anis[0], 0); db.playAnimation(anis[0], 0);
cc.tween(animaNode).by(1, { x: -500 }).call(() => { cc.tween(animaNode).by(1, { x: -500 }).call(() => {
......
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