public void takeDamage(int amount) { health -= amount; healthbar.updateHealth(health, maxHealth); Debug.Log("Player Health: " + health); }
public void takeDamage(int amount) { health -= amount; healthbar.updateHealth(health, maxHealth); Debug.Log("Player Health: " + health); }