void ManageAttacks(InputInfo inputInfo) { if (inputInfo.GetAttackInput()) { playerAttack.Attack(inputInfo.GetLastMovementKeyPressed()); } }
void ManageAnimations(InputInfo inputInfo) { playerAnim.InformIfJustOneMovementKeyIsPressed(inputInfo.IsJustOneMovementKeyPressed()); playerAnim.AnimateWalk(inputInfo.GetW(), inputInfo.GetS(), inputInfo.GetA(), inputInfo.GetD()); playerAnim.AnimateAttack(inputInfo.GetAttackInput()); }