DEG-41 전투 패턴 구현 시작
This commit is contained in:
parent
e5d94ba43d
commit
3694483a9c
BIN
Assets/JYY/Prefabs/AOEIndicator.prefab
(Stored with Git LFS)
BIN
Assets/JYY/Prefabs/AOEIndicator.prefab
(Stored with Git LFS)
Binary file not shown.
@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 36d2fcfec062c074ba2dad3a0b0116be
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/JYY/Prefabs/AOEIndicatorChariot.prefab
(Stored with Git LFS)
BIN
Assets/JYY/Prefabs/AOEIndicatorChariot.prefab
(Stored with Git LFS)
Binary file not shown.
7
Assets/Scripts/Character/Enemy/EnemyDemageField.cs
Normal file
7
Assets/Scripts/Character/Enemy/EnemyDemageField.cs
Normal file
@ -0,0 +1,7 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class EnemyDemageField : MonoBehaviour
|
||||
{
|
||||
private float damage;
|
||||
|
||||
}
|
3
Assets/Scripts/Character/Enemy/EnemyDemageField.cs.meta
Normal file
3
Assets/Scripts/Character/Enemy/EnemyDemageField.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8ac23a14eeef4226962782ab20ec78e0
|
||||
timeCreated: 1745219566
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user