feat: 드로그 보스 리네임 및 기본 패턴 구현
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