public void Attack() { if (playerCombat == null || coolDownProgressBar.Current > 0) { return; } playerCombat.ExecuteAbility(index); }