Make work with astra

This commit is contained in:
Andras Schmelczer 2026-09-14 08:01:49 +01:00
commit c8ee5045e2

View file

@ -46,8 +46,9 @@ public class TrafficController : NetworkBehaviour {
private float timePassedSpawn = 0;
private int current = 0;
void Start () {
if (!isServer) return;
public override void OnStartServer () {
base.OnStartServer();
url = url.TrimEnd('/');
trafficLights = new TrafficLights();