private void Story2Continue_Button_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form4_RaceGame f4 = new Form4_RaceGame();

            f4.ShowDialog();
            this.Close();
        }
Exemple #2
0
        private void Replay_Button_Click(object sender, EventArgs e)
        {
            score      = 0;
            cookieFuel = 0;
            level      = 1;
            Controls.Clear();
            //Form4_RaceGame.score = 0;
            //Form4_RaceGame.coins = 0;
            //Form4_RaceGame.level = 1;
            this.Hide();
            Form4_RaceGame f4 = new Form4_RaceGame();

            f4.ShowDialog();
            this.Close();
        }