Пример #1
0
 public void AirGateThresholdTriggered(Controller.DroneRacer droneRacer)
 {
     if (state == State.Next)
     {
         RaceManager.AirGateThresholdCrossed(droneRacer, this);
     }
 }
Пример #2
0
        void Awake()
        {
            if (instance == null)
            {
                instance = this;
            }
            else
            {
                Debug.LogError("RaceManager has already been created.");
            }

            stopwatch = GetComponent <Stopwatch>();

            countdownTimer = GetComponent <CountdownTimer>();

            countdownTimer.AddTimerFinishedListener(CountdownTimerFinished);
        }