执行继承代码,ctor scope 中的this 与 _super scope 中的this 不是同一个。导致创建骨骼失败 Error: Invalid Native Object
var testSk = sp.SkeletonAnimation.extend({
ctor: function (name) {
var skeleton_json = cc.path.join(name ,"skeleton.json");
var skeleton_atlas = cc.path.join(name ,"skeleton.atlas");
//var skeleton_png = cc.path.join(name ,"skeleton.png");
this._super(skeleton_json, skeleton_atlas, 1.0);
}
});
求解决?