public static void GenerateCar_Tick() { if (ver == 5) { switch (R.Next(1, 5)) { case 1: Gen_crazy.GorizontalLeftC(); break; case 2: Gen_crazy.GorizontalRightC(); break; case 3: Gen_crazy.VerticalDownC(); break; case 4: Gen_crazy.VerticalUpC(); break; } } else { switch (R.Next(1, 5)) { case 1: Generate.GorizontalLeft(); break; case 2: Generate.GorizontalRight(); break; case 3: Generate.VerticalDown(); break; case 4: Generate.VerticalUp(); break; } } }
private void button4_Click(object sender, EventArgs e) //VerticalDown { Gen_crazy.VerticalDownC(); }
private void button3_Click(object sender, EventArgs e) //GorizontalRight { Gen_crazy.GorizontalRightC(); }
private void button2_Click(object sender, EventArgs e) //VerticalUp { Gen_crazy.VerticalUpC(); }
private void button1_Click(object sender, EventArgs e) //GorizontalLeft { Gen_crazy.GorizontalLeftC(); }