Пример #1
0
        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;
                }
            }
        }
Пример #2
0
 private void button4_Click(object sender, EventArgs e) //VerticalDown
 {
     Gen_crazy.VerticalDownC();
 }
Пример #3
0
 private void button3_Click(object sender, EventArgs e) //GorizontalRight
 {
     Gen_crazy.GorizontalRightC();
 }
Пример #4
0
 private void button2_Click(object sender, EventArgs e) //VerticalUp
 {
     Gen_crazy.VerticalUpC();
 }
Пример #5
0
 private void button1_Click(object sender, EventArgs e) //GorizontalLeft
 {
     Gen_crazy.GorizontalLeftC();
 }