Esempio n. 1
0
        void Start()
        {
            try
            {
                initialRacer = GameObject.FindWithTag(playerTag);
                m_Racer      = (IRacer)initialRacer.GetComponent(typeof(IRacer));
                this.gameObject.SetActive(true);
            }
            catch (NullReferenceException)
            {
                this.gameObject.SetActive(false);
            }

            trackManager = (Track.TrackManager)GameObject.FindWithTag("TrackManager").GetComponent(typeof(Track.TrackManager));
            SetDisplayOptions(initialDisplayOptions);
        }