mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-02-27 08:31:00 +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.init(null, null, () -> {
|
||||
marb.collisionWorld = this.collisionWorld;
|
||||
// this.collisionWorld.addMovingEntity(marb.collider);
|
||||
this.collisionWorld.addMovingEntity(marb.collider);
|
||||
this.scene.addChild(marb);
|
||||
this.marbles.push(marb);
|
||||
onFinish(marb);
|
||||
|
|
@ -602,7 +602,7 @@ class PreviewWorld extends Scheduler {
|
|||
public function removeMarble(marb:Marble) {
|
||||
if (this.marbles.remove(marb)) {
|
||||
this.scene.removeChild(marb);
|
||||
// this.collisionWorld.removeMovingEntity(marb.collider);
|
||||
this.collisionWorld.removeMovingEntity(marb.collider);
|
||||
marb.dispose();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue