Esempio n. 1
0
    void AddGhost(Ghost ghost)
    {
        string num     = container.childCount.ToString();
        Text   newText = Instantiate(textPrefab, container);

        newText.text = "#" + num + " : " + CarDinoHUD.GetTimes(ghost.totalTime);
        rects.Add(newText.rectTransform);
    }
Esempio n. 2
0
    public void CheckBack()
    {
        CarDinoHUD hud = CarDinoHUD.instance;

        hud.showCheck   = true;
        hud.hasPenality = true;
        CheckPoint.AddPenality(penality);
        time = CheckPoint.data.time;
    }