에디터에서 전장의 안개 기능을 끌 수 있는 기능 추가
This commit is contained in:
@@ -89,6 +89,13 @@ namespace Northbound
|
||||
Debug.LogWarning("[FogOfWar] Fog Material이 설정되지 않았습니다!");
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
if (fogSystem.disableInEditor)
|
||||
{
|
||||
_meshRenderer.enabled = false;
|
||||
}
|
||||
#endif
|
||||
|
||||
// 렌더링 레이어 설정
|
||||
gameObject.layer = LayerMask.NameToLayer("UI"); // 또는 별도 레이어 생성
|
||||
|
||||
@@ -123,6 +130,18 @@ namespace Northbound
|
||||
var fogSystem = FogOfWarSystem.Instance;
|
||||
if (fogSystem == null) return;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
if (fogSystem.disableInEditor)
|
||||
{
|
||||
if (_meshRenderer != null)
|
||||
_meshRenderer.enabled = false;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (_meshRenderer != null)
|
||||
_meshRenderer.enabled = true;
|
||||
|
||||
var fogData = fogSystem.GetPlayerFogData(_localClientId);
|
||||
|
||||
for (int y = 0; y < fogSystem.gridHeight; y++)
|
||||
|
||||
Reference in New Issue
Block a user