Exemple #1
0
    public void CarReached(float time)
    {
        carsRint++;
        carsReaching.text = carsRint.ToString();
        if (time < bestTimef)
        {
            bestTimef     = time;
            bestTime.text = bestTimef.ToString(CultureInfo.InvariantCulture);
        }

        carsSpawne++;
        carsSpawned.text = carsSpawne.ToString();
        if (gc != null && gc.enabled)
        {
            gc.AddTime(time);
        }
    }