Пример #1
0
 void ManageAttacks(InputInfo inputInfo)
 {
     if (inputInfo.GetAttackInput())
     {
         playerAttack.Attack(inputInfo.GetLastMovementKeyPressed());
     }
 }
Пример #2
0
 void ManageAnimations(InputInfo inputInfo)
 {
     playerAnim.InformIfJustOneMovementKeyIsPressed(inputInfo.IsJustOneMovementKeyPressed());
     playerAnim.AnimateWalk(inputInfo.GetW(), inputInfo.GetS(), inputInfo.GetA(), inputInfo.GetD());
     playerAnim.AnimateAttack(inputInfo.GetAttackInput());
 }