2026-05-22 스킬예측

This commit is contained in:
2026-05-22 12:13:04 +09:00
parent b9338b04f1
commit 20db4207fa
4 changed files with 18 additions and 11 deletions

Binary file not shown.

View File

@@ -5,12 +5,7 @@
// ============================================================================
// HazardSkill
// ----------------------------------------------------------------------------
// 보스 특별 스킬의 한 종류 (BossSkill 상속). 스킬 프리팹의 루트에 부착.
//
// 시퀀스: 자체 애니메이션 재생 → 선딜 → 피해 판정 ON → 유지 → OFF → 후딜 → 자동 파괴
//
// 콜라이더의 "움직임"은 이 프리팹의 자체 Animator/클립이 담당한다 (보스와 무관).
// 이 스크립트는 타이밍에 맞춰 HazardHitbox들의 피해 판정만 ON/OFF 한다.
// 보스 특별 스킬의 한 종류 (BossSkill 상속)
// ============================================================================
public class HazardSkill : BossSkill
{
@@ -30,10 +25,7 @@ private void Awake()
{
if (_animator == null)
_animator = GetComponentInChildren<Animator>();
}
private void Start()
{
support = Object.FindFirstObjectByType<SkillSupport>();
}
@@ -72,6 +64,11 @@ protected override async Awaitable RunSkill(CancellationToken token)
private void PredictHazards(int dirChoice)
{
if(support == null)
{
Debug.Log("Null이니");
}
SkillPredict[] predicts = dirChoice switch { 0 => support.DownHazardPredicts, 1=> support.RightHazardPredicts, _=> null};
for (int i = 0; i < predicts.Length; i++)

BIN
Assets/_Recovery/0 (1).unity LFS Normal file

Binary file not shown.

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 509cab3a1e54dbc4c880461706c573ee
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: