2026-05-18 버그 수정

This commit is contained in:
2026-05-18 17:59:13 +09:00
parent 67cedd8ad2
commit 80cf41af2a
19 changed files with 596 additions and 17 deletions

View File

@@ -75,6 +75,7 @@ private void TryDamage(Collider2D other)
if (_alreadyHit.Contains(target)) return;
_alreadyHit.Add(target);
Debug.Log($"[Hitbox] t={Time.time:F3} damage={_damage} → {other.name} (parent={(target as MonoBehaviour)?.gameObject.name})");
Vector2? targetPosition = GetCorrectionTargetPosition(other);
target.TakeDamage(_damage, _hitVelocity, _hitReactionState, targetPosition, _correctHitTargetY, _hitPositionSolidMask, _hitPositionCorrectionDuration);
OnHit?.Invoke(target);