public void PlayerHPGainDoesntGoOverHundred() { var go = new PlayerUtils(); go.HPGrant(50); Assert.AreEqual(100, go.getHealth()); }
public void PlayerHPGain() { var go = new PlayerUtils(); go.HPRemove(50); go.HPGrant(25); Assert.AreEqual(75, go.getHealth()); }
public void gainHP(float amount) { playUtils.HPGrant(amount); HPChange = 1; healthSlider.value = playUtils.getHealth(); }