2026-06-02 세팅오류, 죽을시 다시 시작
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user