디버깅용 로그 제거

This commit is contained in:
2026-01-30 16:14:41 +09:00
parent e9cebeedf0
commit 8c7c82e984
8 changed files with 21 additions and 124 deletions

View File

@@ -121,7 +121,7 @@ namespace Northbound
int totalSpawned = 0;
int targetCount = Mathf.RoundToInt(maxTotalObstacles * density);
Debug.Log($"<color=cyan>[ObstacleSpawner] 장애물 생성 시작 (목표: {targetCount}개)</color>");
// Debug.Log($"<color=cyan>[ObstacleSpawner] 장애물 생성 시작 (목표: {targetCount}개)</color>");
// 각 장애물 타입별로 최소 개수 보장
foreach (var obstacle in obstacles)
@@ -160,7 +160,7 @@ namespace Northbound
// 모든 장애물이 최대치에 도달했는지 확인
if (AllObstaclesAtMax())
{
Debug.Log("<color=yellow>[ObstacleSpawner] 모든 장애물이 최대 개수에 도달했습니다.</color>");
// Debug.Log("<color=yellow>[ObstacleSpawner] 모든 장애물이 최대 개수에 도달했습니다.</color>");
break;
}
continue;
@@ -182,7 +182,7 @@ namespace Northbound
Debug.LogWarning($"<color=yellow>[ObstacleSpawner] 배치 공간이 부족합니다. {totalSpawned}개만 생성되었습니다.</color>");
}
Debug.Log($"<color=green>[ObstacleSpawner] 장애물 생성 완료: {totalSpawned}개</color>");
// Debug.Log($"<color=green>[ObstacleSpawner] 장애물 생성 완료: {totalSpawned}개</color>");
}
private bool AllObstaclesAtMax()
@@ -209,14 +209,14 @@ namespace Northbound
// 최소 거리 체크
if (!IsValidPosition(randomPos))
{
Debug.Log($"<color=orange>[Spawn] 최소 거리 체크 실패: {randomPos}</color>");
// Debug.Log($"<color=orange>[Spawn] 최소 거리 체크 실패: {randomPos}</color>");
continue;
}
// 충돌 체크
if (checkCollision && Physics.CheckSphere(randomPos, collisionCheckRadius, collisionLayers))
{
Debug.Log($"<color=orange>[Spawn] 충돌 감지: {randomPos}, 반경: {collisionCheckRadius}</color>");
// Debug.Log($"<color=orange>[Spawn] 충돌 감지: {randomPos}, 반경: {collisionCheckRadius}</color>");
continue;
}
@@ -226,11 +226,11 @@ namespace Northbound
if (Physics.Raycast(randomPos + Vector3.up * 100f, Vector3.down, out RaycastHit hit, 200f))
{
randomPos = hit.point;
Debug.Log($"<color=cyan>[Spawn] 지형 감지 성공: {hit.collider.name}</color>");
// Debug.Log($"<color=cyan>[Spawn] 지형 감지 성공: {hit.collider.name}</color>");
}
else
{
Debug.Log($"<color=orange>[Spawn] 지형 감지 실패: {randomPos}</color>");
// Debug.Log($"<color=orange>[Spawn] 지형 감지 실패: {randomPos}</color>");
// 지형이 없어도 배치 시도
}
}
@@ -263,7 +263,7 @@ namespace Northbound
}
_spawnedPositions.Add(randomPos);
Debug.Log($"<color=green>[Spawn] 장애물 배치 성공: {obstacleEntry.prefab.name} at {randomPos}</color>");
// Debug.Log($"<color=green>[Spawn] 장애물 배치 성공: {obstacleEntry.prefab.name} at {randomPos}</color>");
return true;
}