Zniszcz obiekt na fazie kolizji
// set overlap for enemy bullets
this.physics.add.overlap(this.ship, this.enemyBullets, (ship, bullet) => {
this.health -= 10
bullet.destroy()
})
Himanshu Jangid