DEG-157 [HOTFIX] 누락 데미지 로직 추가 #44

Merged
jay merged 1 commits from DEG-157-공격-시-데미지-누락-추가 into main 2025-05-13 04:24:34 +00:00
2 changed files with 6 additions and 1 deletions

View File

@ -57,6 +57,8 @@ public class PlayerActionAttack : IPlayerAction {
public void EndAction() {
if (player == null) return;
player.WeaponController.AttackEnd();
player.SafeSetBool("Attack", false);
IsActive = false;
player.OnActionEnded(this);
@ -70,6 +72,8 @@ public class PlayerActionAttack : IPlayerAction {
var weapon = player.GetComponentInChildren<WeaponController>();
weapon?.SetComboStep(step);
player.WeaponController.AttackStart();
}
public void OnComboInput() {

View File

@ -24,7 +24,8 @@ public class PlayerController : CharacterBase, IObserver<GameObject>
private bool _isBattle;
private GameObject weapon;
private WeaponController _weaponController;
public WeaponController WeaponController => _weaponController;
private IPlayerState _currentStateClass { get; set; }
private IPlayerAction _currentAction;
public IPlayerAction CurrentAction => _currentAction;