2026-06-01 데드존 만들기 진행중

This commit is contained in:
2026-06-01 15:04:14 +09:00
parent 4d38f87886
commit 2e7ddb5fb4
11 changed files with 70 additions and 7 deletions

View File

@@ -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();
}
}