타워 이외의 건물을 건설할 수 없는 문제 수정
Lv1만 보이게 하면서, 보이는 index와 실제 index가 달라져서 발생
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user