Exemplo n.º 1
0
Arquivo: Boat.cs Projeto: Iilun/IC06
    public void InflictDamage(int dmg, int damageType)
    {
        int healthValue = GetHealth() - dmg;

        SetHealth(healthValue);
        if (healthValue > 0)
        {
            healthBar.AddInfo(dmg, damageType);
        }
    }