예제 #1
0
 public void TakeDamage(float damage)
 {
     currentHp -= damage;
     showDamageBh.ShowDamage(this, damage);
     hpBar.SetAmount(currentHp / maxHp);
     if (currentHp <= 0)
     {
         Die();
     }
 }