@luguangfox 写道:
之前用Cocos JS 3.10,实现cc.PhysicsSprite,在ctor 方法里实现
, ctor: function (node, space) {
this._super();
this.addChild(node);
或者
ctor: function (spriteFrameName, space, chipName) {
this._super();
this.died = false;
this.spriteFrameName = spriteFrameName;
cc.log(this.spriteFrameName);
this.space = space;
var sprite = new cc.Sprite(this.spriteFrameName);
this.addChild(sprite);再升级后3.13.1 后无法添加 addChild
只能在外部addChild??
帖子: 1
参与者: 1