private void OnTriggerEnter(Collider other) { if (other.CompareTag("Car") && visited == false) { if (number == 3) { raceManager.FinishRace(); return; } raceManager.SetSplitTime(number); visited = true; } }
private void OnTriggerEnter(Collider other) { if (other.gameObject.name.Equals("KartColliders")) { if (!started) { timeStart.StartRace(); started = true; } else { raceStatus.FinishRace(); } } }
public void FinishRace_NoCountdown() { _raceManager.StartRace(0); _raceManager.FinishRace(0); Assert.Equal(RaceState.Finished, _raceManager.GetRaceState()); }