2026-06-01 데드존 만들기 진행중
This commit is contained in:
@@ -1775,5 +1775,16 @@ public void TakeDamage(int amount, Vector2 hitVelocity = default, string hitReac
|
||||
|
||||
_health.TakeDamage(amount);
|
||||
Debug.Log($"{name} 피격: -{amount} (HP: {_health.CurrentHealth}/{_health.MaxHealth})");
|
||||
|
||||
if(_health.CurrentHealth <= 0)
|
||||
{
|
||||
PlayerDead();
|
||||
}
|
||||
}
|
||||
|
||||
public void PlayerDead()
|
||||
{
|
||||
//재시작 UI 띄우기
|
||||
GameManager.Instance.Restart.ShowRestart();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user