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