feat: 드로그 보스 리네임 및 기본 패턴 구현
- TestBoss 관련 프리팹, 데이터, 애니메이션, BT 자산을 Drog 명칭으로 정리 - 드로그 전용 패턴 컨트롤러와 기본 패턴 루프를 추가 - 오른손치기2 기반 내려찍기와 다운 추가타 연계 진입점을 구현 - 점프, 스윙, 다운 추가타 관련 스킬 및 이펙트 데이터를 정리
This commit is contained in:
@@ -28,13 +28,21 @@ namespace Colosseum.Skills.Effects
|
||||
|
||||
Vector3 knockbackVelocity = direction * force + Vector3.up * upwardForce;
|
||||
|
||||
if (target.TryGetComponent<HitReactionController>(out var hitReactionController))
|
||||
HitReactionController hitReactionController = target.GetComponent<HitReactionController>();
|
||||
if (hitReactionController == null)
|
||||
hitReactionController = target.GetComponentInParent<HitReactionController>();
|
||||
|
||||
if (hitReactionController != null)
|
||||
{
|
||||
hitReactionController.ApplyKnockback(knockbackVelocity, duration);
|
||||
return;
|
||||
}
|
||||
|
||||
if (target.TryGetComponent<PlayerMovement>(out var playerMovement))
|
||||
PlayerMovement playerMovement = target.GetComponent<PlayerMovement>();
|
||||
if (playerMovement == null)
|
||||
playerMovement = target.GetComponentInParent<PlayerMovement>();
|
||||
|
||||
if (playerMovement != null)
|
||||
{
|
||||
playerMovement.ApplyForcedMovement(knockbackVelocity, duration);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user