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