esc(Cancel)로 건설모드 취소
This commit is contained in:
@@ -148,12 +148,24 @@ namespace Northbound
|
||||
|
||||
private void OnCancel(InputAction.CallbackContext context)
|
||||
{
|
||||
// 드래그 중일 때만 취소
|
||||
// 드래그 중일 때 드래그 취소
|
||||
if (isDragging && isBuildModeActive)
|
||||
{
|
||||
CancelDrag();
|
||||
Debug.Log("<color=yellow>[BuildingPlacement] 드래그 건설 취소됨</color>");
|
||||
}
|
||||
// 건설 모드 활성화 상태면 건설 모드 종료
|
||||
else if (isBuildModeActive)
|
||||
{
|
||||
isBuildModeActive = false;
|
||||
if (BuildingQuickslotUI.Instance != null)
|
||||
{
|
||||
BuildingQuickslotUI.Instance.HideQuickslot();
|
||||
}
|
||||
DestroyPreview();
|
||||
ClearDragPreviews();
|
||||
Debug.Log("<color=yellow>[BuildingPlacement] 건설 모드 취소됨</color>");
|
||||
}
|
||||
}
|
||||
|
||||
private void OnToggleBuildMode(InputAction.CallbackContext context)
|
||||
|
||||
Reference in New Issue
Block a user