Exemplo n.º 1
0
        private void Story2Continue_Button_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form4_RaceGame f4 = new Form4_RaceGame();

            f4.ShowDialog();
            this.Close();
        }
Exemplo n.º 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();
        }