void ManageAttacks(InputInfo inputInfo) { if (inputInfo.GetAttackInput()) { playerAttack.Attack(inputInfo.GetLastMovementKeyPressed()); } }
void Update() { InputInfo inputInfo = new InputInfo(previousLastMovementKeyPressed); ManageWalk(inputInfo); ManageAnimations(inputInfo); ManageAttacks(inputInfo); previousLastMovementKeyPressed = inputInfo.GetLastMovementKeyPressed(); }