mirror of
https://github.com/wassname/phaser.git
synced 2026-07-22 12:50:19 +08:00
Fixed Body.removeFromWorld
This commit is contained in:
@@ -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