[Skills] 부채꼴 범위 판정 및 디버그 시각화 추가

- AreaShapeType enum 추가 (Sphere, Fan)
- 부채꼴 설정: 원점 거리, 반지름, 좌우 각도
- 런타임 범위 시각화 (Scene 뷰)
- 스킬 에셋 파일 구조 정리
This commit is contained in:
2026-03-10 14:34:36 +09:00
parent 0286237b98
commit 975572db46
9 changed files with 162 additions and 3 deletions

View File

@@ -21,6 +21,10 @@ namespace Colosseum.Skills
[Header("설정")]
[SerializeField] private bool debugMode = false;
[Tooltip("공격 범위 시각화 (Scene 뷰에서 확인)")]
[SerializeField] private bool showAreaDebug = true;
[Tooltip("범위 표시 지속 시간")]
[Min(0.1f)] [SerializeField] private float debugDrawDuration = 1f;
// 현재 실행 중인 스킬
private SkillData currentSkill;
@@ -207,6 +211,12 @@ namespace Colosseum.Skills
var effect = effects[index];
if (debugMode) Debug.Log($"[Effect] {effect.name} (index {index})");
// 공격 범위 시각화
if (showAreaDebug)
{
effect.DrawDebugRange(gameObject, debugDrawDuration);
}
effect.ExecuteOnCast(gameObject);
}