//added public void TakeDamage(int amount) { currentHealth -= amount; healthBar.SetHealth(currentHealth); if (currentHealth <= 0) { Die(); } }
///////////////////////////////// /// Damage Update Function /// ///////////////////////////////// public void TakeDamage(int damage) { currentHealth -= damage; healthBar.SetHealth(currentHealth); }