Commit 5e206824 authored by xytk's avatar xytk

提交代码

parent 6892e582
This diff is collapsed.
......@@ -145,9 +145,6 @@ cc.Class({
this.initAudio();
this.initView();
// this.initListener();
},
_cantouch: null,
......@@ -198,10 +195,8 @@ cc.Class({
var atlas = new dragonBones.DragonBonesAtlasAsset();
atlas.atlasJson = atlasJson;
atlas.texture = texture;
var asset = new dragonBones.DragonBonesAsset();
asset.dragonBonesJson = dragonBonesJson;
dragonDisplay.dragonAtlasAsset = atlas;
dragonDisplay.dragonAsset = asset;
let dbj = JSON.parse(dragonBonesJson);
......@@ -210,7 +205,12 @@ cc.Class({
dragonDisplay.armatureName = armatureNames[0];
}
// dragonDisplay.playAnimation(item.dragonBone_animationName, 0);
let width = animNode.node.width;
let height = animNode.node.height;
animNode.spriteFrame = spriteFrame;
animNode.node.width = width;
animNode.node.height = height;
});
});
});
......
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