Exemplo n.º 1
0
 public void TryConsumeHealthPotion()
 {
     if (healthPotionAmount > 0)
     {
         healthPotionAmount--;
         OnHealthPotionAmountChanged?.Invoke(this, EventArgs.Empty);
         FlashColor(Color.green);
     }
 }
Exemplo n.º 2
0
 private void AddHealthPotion()
 {
     healthPotionAmount++;
     OnHealthPotionAmountChanged?.Invoke(this, EventArgs.Empty);
 }
Exemplo n.º 3
0
 private void AddHealthPotion()
 {
     PlayerHealthManager.currentHealth++;
     OnHealthPotionAmountChanged?.Invoke(this, EventArgs.Empty);
 }