예제 #1
0
    public void DealDamage(float damage)
    {
        health -= damage;

        display.SetValue(health / MaxHP);

        if (health <= 0)
        {
            Death();
        }
    }