DEG-41 전투 패턴 구현 시작

This commit is contained in:
fiore 2025-04-21 16:24:23 +09:00
parent e5d94ba43d
commit 3694483a9c
6 changed files with 19 additions and 20 deletions

BIN
Assets/JYY/Prefabs/AOEIndicator.prefab (Stored with Git LFS)

Binary file not shown.

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 36d2fcfec062c074ba2dad3a0b0116be
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,7 @@
using UnityEngine;
public class EnemyDemageField : MonoBehaviour
{
private float damage;
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 8ac23a14eeef4226962782ab20ec78e0
timeCreated: 1745219566

View File

@ -36,20 +36,19 @@ public class EnemyStateAttack : IEnemyState
private IEnumerator VerticalAttackSequence()
{
// 1. 전조 이펙트 생성
yield return new WaitForSeconds(0.1f);
// 1. 전조 이펙트 생성, 검을 들어올림
_enemyAttackController.TriggerRandomWarning(_enemyController.transform.position, _enemyController.transform.rotation);
// 2. 검을 들어올림
yield return new WaitForSeconds(3f);
// 2. 대기(전조와 검 들어올리는 애니메이션을 위함)
yield return new WaitForSeconds(2f);
// 3. 대기(전조와 검 들어올리는 애니메이션을 위함)
// 4. 검 휘두르기
// 3. 검 휘두르기
_animator.SetTrigger(VertiSlash);
_enemyAttackController.DestroyWarningArea();
// TODO : 5. 공격 판정 발생
// TODO : 4. 공격 판정 발생
yield return new WaitForSeconds(1f);
// 6. 애니메이션 트리거 종료 -> 애니메이터 상태 머신으로 처리
// 5. 애니메이션 트리거 종료 -> 애니메이터 상태 머신으로 처리
_enemyController.SetState(EnemyState.Trace);
}