void Start() { speedRegulator = GameObject.Find ("SpeedRegulator").GetComponent<SpeedRegulator>(); scoreRegulator = GameObject.Find ("ScoreRegulator").GetComponent<ScoreRegulator>(); gasRegulator = GameObject.Find ("GasRegulator").GetComponent<GasRegulator>(); audioController = GameObject.Find ("AudioContainer").GetComponent<AudioController>(); comboRegulator = GameObject.Find ("ComboRegulator").GetComponent<ComboRegulator> (); }
// Use this for initialization void Start() { text = this.gameObject.GetComponent<TextMesh> (); cRegulator = GameObject.Find ("ComboRegulator").GetComponent<ComboRegulator> (); }