private void ScoreTimer_Tick(object sender, EventArgs e) { scoreLabel.Text = myscore.ToString(); TaikoCountLabel.Text = taikocount.ToString(); if (taikocount == 100) { Taikotimer.Stop(); HitSecondsTimer.Stop(); ScoreTimer.Stop(); /*System.Media.SoundPlayer player = new System.Media.SoundPlayer(); * //player.SoundLocation = @"C:\Users\acer\Desktop\Things\Music\wav\My Dearest.wav"; * player.Stop(); * player.Dispose();*/ Taiko1.Visible = false; Taiko2.Visible = false; Taiko3.Visible = false; Taiko4.Visible = false; HitTaiko.Visible = false; owari.Visible = true; endtime = 0; PlayTimer.Stop(); } }
private void HitSecondsTimer_Tick(object sender, EventArgs e) { HitSecondsTimer.Interval = 200; hs += 0.2f; if (hs > 0.2) { hs = 0; HitSecondsTimer.Stop(); HitTaiko.Visible = false; } }