public void ShopPotion() { player.DestroyMoney(coinForPotion); player.AddHealth(addHealth); if (player.coins <= coinForPotion) { coinForPotion = 0; addHealth = 0; } }
public void AddHealth() { player.AddHealth(value); Destroy(gameObject); }
public void ShopPotion() { player.DestroyMoney(coinForPotion); player.AddHealth(addHealth); if (player.coins <= coinForPotion) { coinForPotion = 0; addHealth = 0; } }
public void AddHealth() { player.AddHealth(value); Destroy(gameObject); }