Commit 55e148f0 authored by zjz1994's avatar zjz1994

修改弹球对象池引用问题

parent 02c07996
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -913,6 +913,7 @@
txt.y = -anchory;
block = new Circle(radius, sprite);
}
engine.Tween.removeTweens(block.view);
that.addChild(block.view);
block.x = x;
block.y = y;
......@@ -1296,6 +1297,7 @@
block.view['txt'].y = -anchory + (anchorx - anchory) * 2;
}
}
engine.Tween.removeTweens(block.view);
block.view["bg"]['__resName__'] = "tri" + picType;
that.addChild(block.view);
block.x = x;
......@@ -1367,6 +1369,7 @@
block.view.bg.endFill();
}
}
engine.Tween.removeTweens(block.view);
that.addChild(block.view);
block.x = x;
block.y = y;
......@@ -1374,7 +1377,6 @@
that.blocks.push(block);
block.ladderNums = 1;
});
//# sourceMappingURL=createSpeialCircle.js.map
var Square = (function (_super) {
tslib.__extends(Square, _super);
......@@ -1606,6 +1608,7 @@
block.view['txt'].y = -anchory;
}
}
engine.Tween.removeTweens(block.view);
block.view["bg"]['__resName__'] = "sq" + picType;
that.addChild(block.view);
block.x = x;
......@@ -2213,6 +2216,7 @@
};
return PlayScene;
}(engine.Container));
//# sourceMappingURL=PlayScene.js.map
var gameWrapper = (function (_super) {
tslib.__extends(gameWrapper, _super);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -44,6 +44,8 @@ export default (that: PlayScene, x, y, num) => {
block = new Circle(radius, sprite);
}
engine.Tween.removeTweens(block.view);
that.addChild(block.view)
block.x = x;
block.y = y;
......
......@@ -55,6 +55,7 @@ export default (that: PlayScene, x, y, num) => {
block.view['txt'].y = -anchory+(anchorx-anchory)*2;
}
}
engine.Tween.removeTweens(block.view);
block.view["bg"]['__resName__'] = `tri${picType}`;
that.addChild(block.view)
block.x = x;
......
......@@ -28,6 +28,7 @@ export default (that: PlayScene, x, y, num) => {
block.view.bg.endFill();
}
}
engine.Tween.removeTweens(block.view);
that.addChild(block.view)
block.x = x;
block.y = y;
......
......@@ -52,6 +52,8 @@ export default (that: PlayScene, x, y, num) => {
block.view['txt'].y = -anchory;
}
}
engine.Tween.removeTweens(block.view);
block.view["bg"]['__resName__'] = `sq${picType}`;
that.addChild(block.view)
// console.log("方形偏移",anchorx,anchory);
......
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