전장의 안개가 비활성화 되어 있을 때 적이 보이지 않는 문제 수정

This commit is contained in:
2026-02-27 14:34:29 +09:00
parent c34b9df4f7
commit 8093cca251
3 changed files with 15 additions and 6 deletions

View File

@@ -2033,7 +2033,7 @@ MonoBehaviour:
enableHeightBlocking: 1
viewerEyeHeight: 1.5
minBlockingHeight: 2
disableInEditor: 1
disableInEditor: 0
--- !u!4 &946527919
Transform:
m_ObjectHideFlags: 0

View File

@@ -134,12 +134,21 @@ namespace Northbound
}
}
// FogOfWarSystem이 없으면 가시성 체크 안함
// FogOfWarSystem이 없으면 항상 보임
if (FogOfWarSystem.Instance == null)
{
if (_initializedVisibility) return;
_initializedVisibility = true;
SetRenderersEnabled(false);
SetRenderersEnabled(true); // FogOfWar가 없으면 항상 보임
return;
}
// FogOfWar가 비활성화되어 있으면 항상 보임
if (!FogOfWarSystem.Instance.gameObject.activeInHierarchy)
{
if (_initializedVisibility) return;
_initializedVisibility = true;
SetRenderersEnabled(true);
return;
}

View File

@@ -225,10 +225,10 @@ namespace Northbound
}
var fogSystem = FogOfWarSystem.Instance;
if (fogSystem == null)
if (fogSystem == null || !fogSystem.gameObject.activeInHierarchy)
{
// No fog system - stay hidden for safety
SetVisible(false);
// No fog system or disabled - always visible
SetVisible(true);
return;
}