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