AiController 빌드 오류 수정(전처리기 위치 변경)

This commit is contained in:
NTG_Lenovo 2023-08-17 10:48:13 +09:00
parent 66711e9851
commit 8b7f3a14fd

View File

@ -62,10 +62,12 @@ namespace BlueWaterProject
#region Unity built-in function #region Unity built-in function
#if UNITY_EDITOR
private void OnDrawGizmosSelected() private void OnDrawGizmosSelected()
{ {
DrawGizmosInFieldOfView(); DrawGizmosInFieldOfView();
} }
#endif
protected virtual void Awake() protected virtual void Awake()
{ {
@ -197,8 +199,7 @@ namespace BlueWaterProject
[field: SerializeField] public TargetInfo TargetInfo { get; set; } = new(); [field: SerializeField] public TargetInfo TargetInfo { get; set; } = new();
private const int TARGET_MAX_SIZE = 30; private const int TARGET_MAX_SIZE = 30;
#if UNITY_EDITOR
public void DrawGizmosInFieldOfView() public void DrawGizmosInFieldOfView()
{ {
if (!IsDrawGizmosInFieldOfView) return; if (!IsDrawGizmosInFieldOfView) return;
@ -212,7 +213,6 @@ namespace BlueWaterProject
Debug.DrawLine(myPos, TargetInfo.transform.position, Color.red); Debug.DrawLine(myPos, TargetInfo.transform.position, Color.red);
} }
#endif
public IEnumerator FindTarget() public IEnumerator FindTarget()
{ {