2026-06-02 세팅오류, 죽을시 다시 시작

This commit is contained in:
nj
2026-06-02 11:56:50 +09:00
parent 2e7ddb5fb4
commit 2a1b1ff0dc
16 changed files with 117 additions and 117 deletions

View File

@@ -1758,7 +1758,6 @@ private void TickHitstun()
if (_hitstunTimer > 0f)
_hitstunTimer -= Time.fixedDeltaTime;
Debug.Log($"_hitstunTimer : {_hitstunTimer}, _isGrounded : {_isGrounded} ");
if (_hitstunTimer <= 0f && _isGrounded && !IsActionActive())
{
@@ -1774,7 +1773,6 @@ public void TakeDamage(int amount, Vector2 hitVelocity = default, string hitReac
if (_health == null || _health.IsDead) return;
_health.TakeDamage(amount);
Debug.Log($"{name} 피격: -{amount} (HP: {_health.CurrentHealth}/{_health.MaxHealth})");
if(_health.CurrentHealth <= 0)
{
@@ -1786,5 +1784,11 @@ public void PlayerDead()
{
//재시작 UI 띄우기
GameManager.Instance.Restart.ShowRestart();
PlayerWeaponInventory.Instance.ClearWeaponInven();
Destroy(gameObject);
}
}