디버깅용 로그 제거

This commit is contained in:
2026-02-16 22:17:37 +09:00
parent 2f624f621c
commit f73c660579
21 changed files with 65 additions and 258 deletions

View File

@@ -17,12 +17,9 @@ namespace Northbound
private void Awake()
{
Debug.Log($"[InteractableModalManager] Awake called on {gameObject.name}");
if (playerInteraction == null)
{
playerInteraction = GetComponent<PlayerInteraction>();
Debug.Log($"[InteractableModalManager] PlayerInteraction: {(playerInteraction != null ? "Found" : "Not Found")}");
}
FindModalComponent();
@@ -30,15 +27,8 @@ namespace Northbound
private void Start()
{
Debug.Log($"[InteractableModalManager] Start called on {gameObject.name}");
FindModalComponent();
if (interactableModal == null)
{
Debug.LogError("[InteractableModalManager] InteractableModal is still null in Start!");
}
// Start()에서 HideModal()을 호출하지 않음 - 첫 번째 Update에서 Modal이 표시되지 않는 문제 방지
// modalPanel과 unavailablePanel은 InteractableModal.Start()에서 이미 false로 설정됨
}
@@ -47,21 +37,14 @@ namespace Northbound
{
if (interactableModal != null)
{
Debug.Log($"[InteractableModalManager] InteractableModal already assigned: {interactableModal.gameObject.name}");
return;
}
InteractableModal[] modals = GetComponentsInChildren<InteractableModal>(true);
Debug.Log($"[InteractableModalManager] Found {modals.Length} InteractableModal components in player children");
if (modals.Length > 0)
{
interactableModal = modals[0];
Debug.Log($"[InteractableModalManager] Using InteractableModal on: {interactableModal.gameObject.name}");
}
else
{
Debug.LogWarning("[InteractableModalManager] InteractableModal not found in player children!");
}
}
@@ -69,7 +52,6 @@ namespace Northbound
{
if (playerInteraction == null)
{
Debug.LogWarning("[InteractableModalManager] Update: playerInteraction is null");
return;
}
@@ -100,17 +82,14 @@ namespace Northbound
if (_currentInteractable != null)
{
Debug.Log($"[InteractableModalManager] Show modal for interactable");
ShowModal(_currentInteractable);
}
else if (unavailableInteractable != null)
{
Debug.Log($"[InteractableModalManager] Show unavailable message");
ShowUnavailableMessageModal(unavailableInteractable);
}
else
{
Debug.Log($"[InteractableModalManager] Hide modal");
HideModal();
}
}