Merge pull request #2027 from bsparks/dev

utilize the heal method
This commit is contained in:
Richard Davey 2015-08-26 23:38:40 +03:00
commit bae732ca9e

View file

@ -83,9 +83,9 @@ Phaser.Component.LifeSpan.prototype = {
this.exists = true;
this.visible = true;
if (typeof this.health === 'number')
if (typeof this.heal === 'function')
{
this.health = health;
this.heal(health);
}
if (this.events)