cocos 的坑

当拟新建了二个节点之后添加了一个数组来记录图片位置之后 不给第二个节点添加动画;可以正常显示

 右边第二个节点却不见了

onDrop: function () {
 
this.sprArray[0].y += 1;
 
this.sprArray[1].x += 1;
 
console.log("我正在运行");
 
// this.changeSprite.y += 1;
 
},
 
这是循环里面的事件
原文地址:https://www.cnblogs.com/thy95/p/10240692.html