DEG-157 [HOTFIX] 누락 데미지 로직 추가
This commit is contained in:
parent
940d967b4f
commit
a61a79ff71
@ -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() {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user