public void AirGateThresholdTriggered(Controller.DroneRacer droneRacer) { if (state == State.Next) { RaceManager.AirGateThresholdCrossed(droneRacer, this); } }
void Awake() { if (instance == null) { instance = this; } else { Debug.LogError("RaceManager has already been created."); } stopwatch = GetComponent <Stopwatch>(); countdownTimer = GetComponent <CountdownTimer>(); countdownTimer.AddTimerFinishedListener(CountdownTimerFinished); }