private void HandleAttack() { if (Input.GetButtonDown("Attack")) { weaponHandler.Attack(facingHandler.facing); } }
public void PlayerHasTurnedToEnemy(GameObject enemy) { //AttackEnemy(enemy); if (!freezed) { weaponHandler.Attack(enemy); } }
private void HandleAttack() { if (Input.GetButtonDown(inputAttackButton)) { if (weaponHandler != null) { weaponHandler.Attack(facingHandler.facing); } } }
private void HandleAttack() { if (Input.GetButton(inputAttackButton)) { if (weaponHandler != null) { weaponHandler.Attack(new Vector2(1.0f, 0.0f)); } } }