Ejemplo n.º 1
0
    public void takeDamage(int amount)
    {
        health -= amount;

        healthbar.updateHealth(health, maxHealth);
        Debug.Log("Player Health: " + health);
    }