mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 00:53:42 +00:00
commit
bae732ca9e
1 changed files with 14 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue