예제 #1
0
파일: PlayerInput.cs 프로젝트: kkaldas/LC2
 void ManageAttacks(InputInfo inputInfo)
 {
     if (inputInfo.GetAttackInput())
     {
         playerAttack.Attack(inputInfo.GetLastMovementKeyPressed());
     }
 }
예제 #2
0
파일: PlayerInput.cs 프로젝트: kkaldas/LC2
    void Update()
    {
        InputInfo inputInfo = new InputInfo(previousLastMovementKeyPressed);

        ManageWalk(inputInfo);
        ManageAnimations(inputInfo);
        ManageAttacks(inputInfo);

        previousLastMovementKeyPressed = inputInfo.GetLastMovementKeyPressed();
    }