コード例 #1
0
 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> ();
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     text = this.gameObject.GetComponent<TextMesh> ();
     cRegulator = GameObject.Find ("ComboRegulator").GetComponent<ComboRegulator> ();
 }