コード例 #1
0
ファイル: Redox.cs プロジェクト: lbhs/ElectronTransfer2020
 // Start is called before the first frame update
 void Start()
 {
     mainObject        = GameObject.Find("GameObject").GetComponent <forces>();
     temperatureSlider = GameObject.Find("temperatureSlider").GetComponent <Slider>();
     Soundsource       = GameObject.Find("Sounds").GetComponent <AudioSource>();
     //Playthis = GameObject.Find("Sounds").GetComponent<AudioClip>();
 }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     mainObject = GameObject.Find("GameObject").GetComponent <forces>();
     if (GameObject.Find("temperatureSlider") != null)
     {
         temperatureSlider = GameObject.Find("temperatureSlider").GetComponent <Slider>();
     }
     Soundsource = GameObject.Find("Sounds").GetComponent <AudioSource>();
 }