mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-05-05 00:51:40 +00:00
fix marble select anim
This commit is contained in:
parent
b94835629f
commit
3e90003a6c
1 changed files with 2 additions and 2 deletions
|
|
@ -592,7 +592,7 @@ class PreviewWorld extends Scheduler {
|
||||||
marb.controllable = false;
|
marb.controllable = false;
|
||||||
marb.init(null, null, () -> {
|
marb.init(null, null, () -> {
|
||||||
marb.collisionWorld = this.collisionWorld;
|
marb.collisionWorld = this.collisionWorld;
|
||||||
// this.collisionWorld.addMovingEntity(marb.collider);
|
this.collisionWorld.addMovingEntity(marb.collider);
|
||||||
this.scene.addChild(marb);
|
this.scene.addChild(marb);
|
||||||
this.marbles.push(marb);
|
this.marbles.push(marb);
|
||||||
onFinish(marb);
|
onFinish(marb);
|
||||||
|
|
@ -602,7 +602,7 @@ class PreviewWorld extends Scheduler {
|
||||||
public function removeMarble(marb:Marble) {
|
public function removeMarble(marb:Marble) {
|
||||||
if (this.marbles.remove(marb)) {
|
if (this.marbles.remove(marb)) {
|
||||||
this.scene.removeChild(marb);
|
this.scene.removeChild(marb);
|
||||||
// this.collisionWorld.removeMovingEntity(marb.collider);
|
this.collisionWorld.removeMovingEntity(marb.collider);
|
||||||
marb.dispose();
|
marb.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue