コード例 #1
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());
 }
コード例 #2
0
ファイル: PlayerInput.cs プロジェクト: kkaldas/LC2
 void ManageWalk(InputInfo inputInfo)
 {
     playerWalk.InformIfJustOneMovementKeyIsPressed(inputInfo.IsJustOneMovementKeyPressed());
     playerWalk.Walk(inputInfo.GetW(), inputInfo.GetS(), inputInfo.GetA(), inputInfo.GetD());
 }