Exemplo 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());
 }
Exemplo n.º 2
0
 void ManageWalk(InputInfo inputInfo)
 {
     playerWalk.InformIfJustOneMovementKeyIsPressed(inputInfo.IsJustOneMovementKeyPressed());
     playerWalk.Walk(inputInfo.GetW(), inputInfo.GetS(), inputInfo.GetA(), inputInfo.GetD());
 }