feat: 플레이어 경직/다운 회복 구간 추가
- HitReactionController에 경직, 다운 회복 가능 구간, Hit 속도 배율 파라미터 처리를 추가 - DownBegin/Recover 상태 종료를 StateMachineBehaviour로 받아 구르기 허용 구간과 다운 해제를 분리 - 드로그 발구르기를 경직 이펙트로 전환하고 넉백/경직 이펙트에서 Hit 애니메이션 속도 배율을 설정 가능하게 정리 - PlayMode 테스트를 추가해 경직/넉백이 Hit 애니메이션 속도 배율을 실제로 반영하는지 자동 검증
This commit is contained in:
19
Assets/_Game/Scripts/Player/PlayerDownBeginExitBehaviour.cs
Normal file
19
Assets/_Game/Scripts/Player/PlayerDownBeginExitBehaviour.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Colosseum.Player
|
||||
{
|
||||
/// <summary>
|
||||
/// DownBegin 상태 종료를 HitReactionController에 전달합니다.
|
||||
/// </summary>
|
||||
public class PlayerDownBeginExitBehaviour : StateMachineBehaviour
|
||||
{
|
||||
public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
||||
{
|
||||
if (animator == null)
|
||||
return;
|
||||
|
||||
HitReactionController hitReactionController = animator.GetComponentInParent<HitReactionController>();
|
||||
hitReactionController?.NotifyDownBeginExited();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user