Пример #1
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("Car") && visited == false)
        {
            if (number == 3)
            {
                raceManager.FinishRace();
                return;
            }

            raceManager.SetSplitTime(number);
            visited = true;
        }
    }
Пример #2
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.name.Equals("KartColliders"))
        {
            if (!started)
            {
                timeStart.StartRace();

                started = true;
            }
            else
            {
                raceStatus.FinishRace();
            }
        }
    }
Пример #3
0
 public void FinishRace_NoCountdown()
 {
     _raceManager.StartRace(0);
     _raceManager.FinishRace(0);
     Assert.Equal(RaceState.Finished, _raceManager.GetRaceState());
 }