Ejemplo n.º 1
0
 public void UsePotion()
 {
     if (CurrentHealth != MaxHealth && Potions.Any())
     {
         Sounds.PlayDrinkSound();
         Potions.Use();
         CurrentHealth += Potions.HealAmount;
         CurrentHealth  = Mathf.Clamp(CurrentHealth, 0, MaxHealth);
         HealthBar.ChangeCurrentValue(CurrentHealth);
     }
 }