Esempio n. 1
0
        private void Start()
        {
            ElapsedTime elapsedTimePersistentObject = GameObject.FindObjectOfType <ElapsedTime>();
            Score       scorePersistentObject       = GameObject.FindObjectOfType <Score>();
            Hits        hitsPersistentObject        = GameObject.FindObjectOfType <Hits>();

            elapsedText.text = elapsedTimePersistentObject.GetElapsedTime().ToString("F0") + " s";
            scoreText.text   = scorePersistentObject.GetScore().ToString("F0") + " points";
            hitsText.text    = hitsPersistentObject.GetHits().ToString("F0");
        }