This commit is contained in:
LinlyBoi
2023-03-09 11:39:02 +02:00
parent 93543f744b
commit b674e441f3

View File

@@ -31,12 +31,15 @@ public class Traffic {
Traffic_Sign.add(StopButton, 3);
while (true) {
red_thread.run();
if (pressed) break;
yellow_thread.run();
if (pressed) break;
green_thread.run();
if (pressed) break;
red_thread.start();
if (pressed)
break;
yellow_thread.start();
if (pressed)
break;
green_thread.start();
if (pressed)
break;
}
}
}