예제 #1
0
    public void SetPlayerHPPercent(int hpPercent)
    {
        int previousHP = playerHP;

        statBarObject.SetHPBar(hpPercent);
        playerHP = hpPercent;
        UpdateStatBarSize();

        if (!(hpPercent == 0 || previousHP == 0))
        {
            UpdateHPMPActive();
        }
    }
예제 #2
0
 public void SetHPBar(int hpPercent)
 {
     statBar.SetHPBar(hpPercent);
 }