예제 #1
0
파일: PlayerInput.cs 프로젝트: kkaldas/LC2
 void ManageAttacks(InputInfo inputInfo)
 {
     if (inputInfo.GetAttackInput())
     {
         playerAttack.Attack(inputInfo.GetLastMovementKeyPressed());
     }
 }
예제 #2
0
파일: PlayerInput.cs 프로젝트: kkaldas/LC2
 void ManageAnimations(InputInfo inputInfo)
 {
     playerAnim.InformIfJustOneMovementKeyIsPressed(inputInfo.IsJustOneMovementKeyPressed());
     playerAnim.AnimateWalk(inputInfo.GetW(), inputInfo.GetS(), inputInfo.GetA(), inputInfo.GetD());
     playerAnim.AnimateAttack(inputInfo.GetAttackInput());
 }