2026-05-22 스킬예측
This commit is contained in:
BIN
Assets/01_Scenes/BossScene.unity
LFS
BIN
Assets/01_Scenes/BossScene.unity
LFS
Binary file not shown.
@@ -5,12 +5,7 @@
|
|||||||
// ============================================================================
|
// ============================================================================
|
||||||
// HazardSkill
|
// HazardSkill
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// 보스 특별 스킬의 한 종류 (BossSkill 상속). 스킬 프리팹의 루트에 부착.
|
// 보스 특별 스킬의 한 종류 (BossSkill 상속)
|
||||||
//
|
|
||||||
// 시퀀스: 자체 애니메이션 재생 → 선딜 → 피해 판정 ON → 유지 → OFF → 후딜 → 자동 파괴
|
|
||||||
//
|
|
||||||
// 콜라이더의 "움직임"은 이 프리팹의 자체 Animator/클립이 담당한다 (보스와 무관).
|
|
||||||
// 이 스크립트는 타이밍에 맞춰 HazardHitbox들의 피해 판정만 ON/OFF 한다.
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
public class HazardSkill : BossSkill
|
public class HazardSkill : BossSkill
|
||||||
{
|
{
|
||||||
@@ -30,10 +25,7 @@ private void Awake()
|
|||||||
{
|
{
|
||||||
if (_animator == null)
|
if (_animator == null)
|
||||||
_animator = GetComponentInChildren<Animator>();
|
_animator = GetComponentInChildren<Animator>();
|
||||||
}
|
|
||||||
|
|
||||||
private void Start()
|
|
||||||
{
|
|
||||||
support = Object.FindFirstObjectByType<SkillSupport>();
|
support = Object.FindFirstObjectByType<SkillSupport>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,6 +64,11 @@ protected override async Awaitable RunSkill(CancellationToken token)
|
|||||||
|
|
||||||
private void PredictHazards(int dirChoice)
|
private void PredictHazards(int dirChoice)
|
||||||
{
|
{
|
||||||
|
if(support == null)
|
||||||
|
{
|
||||||
|
Debug.Log("Null이니");
|
||||||
|
}
|
||||||
|
|
||||||
SkillPredict[] predicts = dirChoice switch { 0 => support.DownHazardPredicts, 1=> support.RightHazardPredicts, _=> null};
|
SkillPredict[] predicts = dirChoice switch { 0 => support.DownHazardPredicts, 1=> support.RightHazardPredicts, _=> null};
|
||||||
|
|
||||||
for (int i = 0; i < predicts.Length; i++)
|
for (int i = 0; i < predicts.Length; i++)
|
||||||
|
|||||||
BIN
Assets/_Recovery/0 (1).unity
LFS
Normal file
BIN
Assets/_Recovery/0 (1).unity
LFS
Normal file
Binary file not shown.
7
Assets/_Recovery/0 (1).unity.meta
Normal file
7
Assets/_Recovery/0 (1).unity.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 509cab3a1e54dbc4c880461706c573ee
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Reference in New Issue
Block a user