Esempio n. 1
0
 void ManageAnimations(InputInfo inputInfo)
 {
     playerAnim.InformIfJustOneMovementKeyIsPressed(inputInfo.IsJustOneMovementKeyPressed());
     playerAnim.AnimateWalk(inputInfo.GetW(), inputInfo.GetS(), inputInfo.GetA(), inputInfo.GetD());
     playerAnim.AnimateAttack(inputInfo.GetAttackInput());
 }
Esempio n. 2
0
 void ManageWalk(InputInfo inputInfo)
 {
     playerWalk.InformIfJustOneMovementKeyIsPressed(inputInfo.IsJustOneMovementKeyPressed());
     playerWalk.Walk(inputInfo.GetW(), inputInfo.GetS(), inputInfo.GetA(), inputInfo.GetD());
 }