void Attack() { timer = 0f; if (playerHealth.currentHealth > 0f) { playerHealth.ApplyDamagePlayer(attackDamage); } }