Esempio n. 1
0
    void Update()
    {
        countdown     -= Time.deltaTime;
        TextTimer.time = countdown;

        if (countdown < 0)
        {
            ScoreKeeper scorekeeper = GameObject.Find("Score Keeper").GetComponent <ScoreKeeper>();
            scorekeeper.EndScore(); //Call the score keeper script to display game over Ui
        }
    }