Пример #1
0
 private void HandleAttack()
 {
     if (Input.GetButtonDown("Attack"))
     {
         weaponHandler.Attack(facingHandler.facing);
     }
 }
Пример #2
0
 public void PlayerHasTurnedToEnemy(GameObject enemy)
 {
     //AttackEnemy(enemy);
     if (!freezed)
     {
         weaponHandler.Attack(enemy);
     }
 }
Пример #3
0
 private void HandleAttack()
 {
     if (Input.GetButtonDown(inputAttackButton))
     {
         if (weaponHandler != null)
         {
             weaponHandler.Attack(facingHandler.facing);
         }
     }
 }
Пример #4
0
 private void HandleAttack()
 {
     if (Input.GetButton(inputAttackButton))
     {
         if (weaponHandler != null)
         {
             weaponHandler.Attack(new Vector2(1.0f, 0.0f));
         }
     }
 }