Beispiel #1
0
    void Update()
    {
        if (timer != null)
        {
            carName.text   = comp.car_name;
            racerName.text = comp.racer_name;

            if (timer.currentTimeDisp.gameObject.activeSelf)
            {
                currentLapTime.text = timer.currentTimeDisp.text;
            }
            else
            {
                currentLapTime.text = "--:--";
            }

            if (timer.bestTimeDisp.gameObject.activeSelf)
            {
                bestLapTime.text = timer.bestTimeDisp.text;
            }
            else
            {
                bestLapTime.text = "--:--";
            }

            iLap.text = timer.GetNumLapsCompleted().ToString();
            dqNot.gameObject.SetActive(timer.IsDisqualified());
        }
    }