Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     speed_manager = GameObject.Find("SpeedManager");
     pedal_script  = speed_manager.GetComponent <PedalManager>();
 }
Beispiel #2
0
 private void Start()
 {
     //取得
     animator     = GetComponent <Animator> ();
     pedalManager = GameObject.Find("SpeedManager").GetComponent <PedalManager> ();
 }