public void SetPlayerHPPercent(int hpPercent) { int previousHP = playerHP; statBarObject.SetHPBar(hpPercent); playerHP = hpPercent; UpdateStatBarSize(); if (!(hpPercent == 0 || previousHP == 0)) { UpdateHPMPActive(); } }
public void SetHPBar(int hpPercent) { statBar.SetHPBar(hpPercent); }