public void StartGame(int choosenSpeed) { score = 0; speedLevel = choosenSpeed; timer.Interval = SPEED [ choosenSpeed ]; glass = new Glass(); labScore.Text = score.ToString(); timer.Enabled = true; }
public void FinishGame() { glass = null; timer.Enabled = false; MessageBox.Show("Your score is " + score, "Game Over"); score = 0; labScore.Text = score.ToString(); panelGame.Refresh(); panelPreview.Refresh(); }