예제 #1
0
    public void PlayerHPGainDoesntGoOverHundred()
    {
        var go = new PlayerUtils();

        go.HPGrant(50);
        Assert.AreEqual(100, go.getHealth());
    }
예제 #2
0
    public void PlayerHPGain()
    {
        var go = new PlayerUtils();

        go.HPRemove(50);
        go.HPGrant(25);
        Assert.AreEqual(75, go.getHealth());
    }
예제 #3
0
 public void gainHP(float amount)
 {
     playUtils.HPGrant(amount);
     HPChange           = 1;
     healthSlider.value = playUtils.getHealth();
 }