타워 이외의 건물을 건설할 수 없는 문제 수정

Lv1만 보이게 하면서, 보이는 index와 실제 index가 달라져서 발생
This commit is contained in:
2026-02-25 16:38:31 +09:00
parent 9fd45ec5e9
commit 979f2402c7
2 changed files with 20 additions and 25 deletions

View File

@@ -603,7 +603,7 @@ namespace Northbound
var coreResourceManager = CoreResourceManager.Instance;
if (coreResourceManager == null || coreResourceManager.CanAfford(selectedData.mana))
{
BuildingManager.Instance.RequestPlaceFoundation(selectedBuildingIndex, groundPosition, currentRotation);
BuildingManager.Instance.RequestPlaceFoundation(selectedData.name, groundPosition, currentRotation);
}
}
}
@@ -620,7 +620,7 @@ namespace Northbound
foreach (var position in dragBuildingPositions)
{
BuildingManager.Instance.RequestPlaceFoundation(selectedBuildingIndex, position, currentRotation);
BuildingManager.Instance.RequestPlaceFoundation(selectedData.name, position, currentRotation);
}
}
@@ -659,8 +659,8 @@ namespace Northbound
if (BuildingManager.Instance.IsValidPlacement(selectedData, hit.point, currentRotation, out Vector3 groundPosition))
{
// 토대 배치 요청
BuildingManager.Instance.RequestPlaceFoundation(selectedBuildingIndex, groundPosition, currentRotation);
// 토대 배치 요청 (건물 이름 사용)
BuildingManager.Instance.RequestPlaceFoundation(selectedData.name, groundPosition, currentRotation);
}
}
}