mirror of
https://github.com/wassname/phaser.git
synced 2026-10-29 13:21:16 +08:00
Fixed Body.removeFromWorld
This commit is contained in:
1 parent
7373db6e8c
commit
f6807e23c6
3 files changed
+12
-6
No files matched your search
@@ -903,9 +903,11 @@ Object.defineProperty(Phaser.Sprite.prototype, "exists", {
|
||||
{
|
||||
// exists = false
|
||||
this._cache[6] = 0;
|
||||
console.log('exists false');
|
||||
|
||||
if (this.body)
|
||||
{
|
||||
console.log('exists false remove from world');
|
||||
this.body.removeFromWorld();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user