디버깅용 로그 제거

This commit is contained in:
2026-02-16 22:17:37 +09:00
parent 2f624f621c
commit f73c660579
21 changed files with 65 additions and 258 deletions

View File

@@ -76,7 +76,6 @@ namespace Northbound
{
if (creepPrefabs.Count == 0)
{
Debug.LogWarning($"[CreepCamp] No creep prefabs assigned!");
return;
}
@@ -91,14 +90,12 @@ namespace Northbound
GameObject selectedCreep = SelectCreepByCost(remainingCost);
if (selectedCreep == null)
{
Debug.LogWarning($"[CreepCamp] No affordable creeps. Remaining cost: {remainingCost:F2}");
break;
}
CreepData creepData = GetCreepDataFromPrefab(selectedCreep);
if (creepData == null)
{
Debug.LogWarning($"[CreepCamp] Could not get creep data from {selectedCreep.name}");
continue;
}
@@ -106,8 +103,6 @@ namespace Northbound
remainingCost -= creepData.cost;
spawnedCount++;
}
Debug.Log($"<color=green>[CreepCamp] Spawned {spawnedCount} creeps (Cost budget: {_campCostBudget * _campStrength:F2}, Used: {(_campCostBudget * _campStrength) - remainingCost:F2})</color>");
}
private GameObject SelectCreepByCost(float remainingCost)
@@ -179,7 +174,6 @@ namespace Northbound
{
if (resourcePickupPrefab == null)
{
Debug.LogWarning($"[CreepCamp] No resource pickup prefab assigned!");
return;
}
@@ -188,7 +182,6 @@ namespace Northbound
_resourcePickup = pickup.GetComponent<ResourcePickup>();
if (_resourcePickup == null)
{
Debug.LogError($"[CreepCamp] ResourcePickup component not found on prefab!");
Destroy(pickup);
return;
}
@@ -207,8 +200,6 @@ namespace Northbound
// 비활성화는 ServerRpc를 통해 처리
DisablePickupClientRpc();
Debug.Log($"<color=cyan>[CreepCamp] Resource pickup spawned (Amount: {_resourcePickup.resourceAmount})</color>");
}
private void HandleCreepDeath(EnemyUnit deadCreep)
@@ -226,13 +217,10 @@ namespace Northbound
// 리스트에서 해당 creep 제거
_spawnedCreeps.Remove(deadCreep);
Debug.Log($"<color=orange>[CreepCamp] Creep died. Remaining creeps: {_spawnedCreeps.Count}</color>");
// 모든 creep이 처치되었으면 ResourcePickup 활성화
if (_spawnedCreeps.Count == 0 && _resourcePickup != null)
{
EnableResourcePickupClientRpc();
Debug.Log($"<color=green>[CreepCamp] All creeps defeated! Resource pickup enabled.</color>");
}
}
@@ -297,10 +285,6 @@ namespace Northbound
_deathHandlers[enemyUnit] = handler;
enemyUnit.OnDeath += handler;
}
else
{
Debug.LogWarning($"[CreepCamp] EnemyUnit component not found on creep prefab {prefab.name}");
}
networkObj.SpawnWithOwnership(NetworkManager.Singleton.LocalClientId);
}