에디터에서 전장의 안개 기능을 끌 수 있는 기능 추가
This commit is contained in:
@@ -217,6 +217,10 @@ namespace Northbound
|
||||
[Tooltip("Minimum obstacle height to block vision")]
|
||||
public float minBlockingHeight = 2.0f;
|
||||
|
||||
[Header("Editor Settings")]
|
||||
[Tooltip("Disable fog of war in Unity Editor for easier development")]
|
||||
public bool disableInEditor = true;
|
||||
|
||||
// 서버: 각 플레이어별 가시성 맵
|
||||
private Dictionary<ulong, FogOfWarData> _serverFogData = new Dictionary<ulong, FogOfWarData>();
|
||||
|
||||
@@ -462,6 +466,11 @@ namespace Northbound
|
||||
/// </summary>
|
||||
public FogOfWarState GetVisibilityState(ulong clientId, Vector3 worldPosition)
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
if (disableInEditor)
|
||||
return FogOfWarState.Visible;
|
||||
#endif
|
||||
|
||||
FogOfWarData fogData = GetPlayerFogData(clientId);
|
||||
if (fogData == null)
|
||||
return FogOfWarState.Unexplored;
|
||||
|
||||
Reference in New Issue
Block a user