private void clickOnCaca(object sender, MouseButtonEventArgs e) { s = new SoundsPlayer(); isCreated = false; cvBunny.Children.Remove(cvCaca); if (Globals.ProgressBar_diversion.Value >= 30) { s.cleaningSound(); Globals.score += 5; Globals.label_puntuacion.Content = "PuntuaciĆ³n: " + Globals.score; Globals.cacas--; showPuntuation(); } }