DEG-94 [STYLE] 주석 추가

This commit is contained in:
Jay 2025-04-24 14:35:56 +09:00
parent 4a527c8443
commit 40b5619114

View File

@ -3,14 +3,14 @@
public class PlayerActionDash : IPlayerAction public class PlayerActionDash : IPlayerAction
{ {
private PlayerController player; private PlayerController player;
private float duration = 0.25f; private float duration = 0.25f; // 대시 유지 시간
private float timer; private float timer; // 대시 경과 시간
private Vector3 direction; private Vector3 direction; // 대시 방향
private float dashSpeedMultiplier = 3f; // 기본 이동 속도의 n배 private float dashSpeedMultiplier = 3f; // 기본 이동 속도의 n배
private float dashSpeed; private float dashSpeed; // 실제 대시 속도(계산한 값)
public bool IsActive { get; private set; } public bool IsActive { get; private set; } // 현재 대시 중인지 여부
public void StartAction(PlayerController player) public void StartAction(PlayerController player)
{ {
@ -18,10 +18,13 @@ public class PlayerActionDash : IPlayerAction
IsActive = true; IsActive = true;
timer = 0f; timer = 0f;
// 조이스틱 입력값 있으면 그 방향, 없으면 캐릭터가 바라보는 방향
direction = player.GetMoveDirectionOrForward().normalized; direction = player.GetMoveDirectionOrForward().normalized;
// 대시 속도 = 이동 속도 x 배수
dashSpeed = player.moveSpeed * dashSpeedMultiplier; dashSpeed = player.moveSpeed * dashSpeedMultiplier;
// TODO: 필요 시 애니메이션 재생
// player.PlayerAnimator.SetTrigger("Roll"); // player.PlayerAnimator.SetTrigger("Roll");
} }