Example #1
0
//=====================================================================================
    public void TakeDamage(int damage) //Player receives Damage from enemies
    {
        currentHealth -= damage;

        healthbar.setHealth(currentHealth);
    }