- Home /
Question by
Mike_Mitchley · Jun 09, 2020 at 08:55 PM ·
lives
Hi, i have a lives system for my player but every time it gets hit by an enemy it loses 2 lives and not 1 ?
public void Damage()
{
_lives--;
if (_lives < 1)
{
Destroy(this.gameObject);
}
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613000448im_/https://answers.unity.com/themes/thub/images/avi.jpg)