전장의 안개가 비활성화 되어 있을 때 적이 보이지 않는 문제 수정
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user