let spine = that.CapsuleBoom.getComponent(sp.Skeleton);
cc.loader.loadRes("capsule/skeleton",sp.SkeletonData,function(err,skdata){
cc.log("骨骼",skdata)
spine.setSkeletonData=skdata
})
spine.defaultSkin="red"
spine.setAnimation(1, "animation", false);
网友评论