fix: Ground Target 조작법 변경 (클릭 확정 → 같은 스킬키 확정)
- 스킬키 재입력으로 지면 타겟 확정 (좌클릭 제거) - 타겟팅 모드 중 다른 스킬 키 입력 시 취소 - 우클릭/ESC 취소 유지
This commit is contained in:
@@ -392,6 +392,20 @@ namespace Colosseum.Player
|
|||||||
if (slotIndex < 0 || slotIndex >= skillSlots.Length)
|
if (slotIndex < 0 || slotIndex >= skillSlots.Length)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Ground Target 타겟팅 모드 중이면 같은 스킬 키로 확정
|
||||||
|
if (currentTargetingMode == TargetingMode.GroundTarget)
|
||||||
|
{
|
||||||
|
if (slotIndex == pendingGroundTargetSlotIndex)
|
||||||
|
{
|
||||||
|
ConfirmGroundTarget();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
CancelGroundTargetMode();
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
SkillLoadoutEntry loadoutEntry = GetSkillLoadout(slotIndex);
|
SkillLoadoutEntry loadoutEntry = GetSkillLoadout(slotIndex);
|
||||||
SkillData skill = loadoutEntry != null ? loadoutEntry.BaseSkill : null;
|
SkillData skill = loadoutEntry != null ? loadoutEntry.BaseSkill : null;
|
||||||
if (skill == null)
|
if (skill == null)
|
||||||
@@ -1018,13 +1032,6 @@ namespace Colosseum.Player
|
|||||||
groundTargetIndicator.UpdatePosition(currentPos);
|
groundTargetIndicator.UpdatePosition(currentPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 좌클릭: 지면 타겟 확정
|
|
||||||
if (Mouse.current != null && Mouse.current.leftButton.wasPressedThisFrame)
|
|
||||||
{
|
|
||||||
ConfirmGroundTarget();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 우클릭 또는 ESC: 타겟팅 취소
|
// 우클릭 또는 ESC: 타겟팅 취소
|
||||||
if ((Mouse.current != null && Mouse.current.rightButton.wasPressedThisFrame)
|
if ((Mouse.current != null && Mouse.current.rightButton.wasPressedThisFrame)
|
||||||
|| (Keyboard.current != null && Keyboard.current.escapeKey.wasPressedThisFrame))
|
|| (Keyboard.current != null && Keyboard.current.escapeKey.wasPressedThisFrame))
|
||||||
|
|||||||
Reference in New Issue
Block a user