Exemplo n.º 1
0
 private void Aiming()
 {
     if (rpgCharacterInputController.HasAimInput() && (weapon == Weapon.RIFLE || weapon == Weapon.TWOHANDCROSSBOW || weapon == Weapon.TWOHANDBOW))
     {
         if (!isAiming)
         {
             isAiming = true;
             animator.SetBool("Aiming", true);
         }
     }
     else
     {
         isAiming = false;
         animator.SetBool("Aiming", false);
     }
 }
Exemplo n.º 2
0
 private void Aiming()
 {
     if (rpgCharacterInputController.HasAimInput() || rpgCharacterInputController.inputAiming)
     {
         if (!isAiming)
         {
             isAiming = true;
             animator.SetBool("Aiming", true);
         }
     }
     else
     {
         isAiming = false;
         animator.SetBool("Aiming", false);
     }
 }