전장의 안개가 비활성화 되어 있을 때 적이 보이지 않는 문제 수정
This commit is contained in:
@@ -2033,7 +2033,7 @@ MonoBehaviour:
|
|||||||
enableHeightBlocking: 1
|
enableHeightBlocking: 1
|
||||||
viewerEyeHeight: 1.5
|
viewerEyeHeight: 1.5
|
||||||
minBlockingHeight: 2
|
minBlockingHeight: 2
|
||||||
disableInEditor: 1
|
disableInEditor: 0
|
||||||
--- !u!4 &946527919
|
--- !u!4 &946527919
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
@@ -134,12 +134,21 @@ namespace Northbound
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FogOfWarSystem이 없으면 가시성 체크 안함
|
// FogOfWarSystem이 없으면 항상 보임
|
||||||
if (FogOfWarSystem.Instance == null)
|
if (FogOfWarSystem.Instance == null)
|
||||||
{
|
{
|
||||||
if (_initializedVisibility) return;
|
if (_initializedVisibility) return;
|
||||||
_initializedVisibility = true;
|
_initializedVisibility = true;
|
||||||
SetRenderersEnabled(false);
|
SetRenderersEnabled(true); // FogOfWar가 없으면 항상 보임
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// FogOfWar가 비활성화되어 있으면 항상 보임
|
||||||
|
if (!FogOfWarSystem.Instance.gameObject.activeInHierarchy)
|
||||||
|
{
|
||||||
|
if (_initializedVisibility) return;
|
||||||
|
_initializedVisibility = true;
|
||||||
|
SetRenderersEnabled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -225,10 +225,10 @@ namespace Northbound
|
|||||||
}
|
}
|
||||||
|
|
||||||
var fogSystem = FogOfWarSystem.Instance;
|
var fogSystem = FogOfWarSystem.Instance;
|
||||||
if (fogSystem == null)
|
if (fogSystem == null || !fogSystem.gameObject.activeInHierarchy)
|
||||||
{
|
{
|
||||||
// No fog system - stay hidden for safety
|
// No fog system or disabled - always visible
|
||||||
SetVisible(false);
|
SetVisible(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user