// Start is called before the first frame update void Start() { exhalationSoundScript = GameObject.FindObjectOfType <ExhalationSound>(); breathSource = GetComponent <AudioSource>(); callibrationScript = GameObject.FindObjectOfType <Callibration>(); }
// Start is called before the first frame update void Start() { redLight = GameObject.Find("RedLight").GetComponent <Light>(); greenLight = GameObject.Find("Green Light").GetComponent <Light>(); yellowLight = GameObject.Find("Yellow Light").GetComponent <Light>(); videoPlayer = GameObject.Find("Video Player"); videoPlayer.SetActive(false); inhalationScript = GameObject.FindObjectOfType <InhalationScript>(); exhalationScript = GameObject.FindObjectOfType <ExhalationSound>(); moveBackgroundScript = GameObject.FindObjectOfType <MoveBackground>(); terrainStopper = GameObject.Find("Terrain").GetComponent <MoveBackground>(); breatheInText = GameObject.Find("BreatheInText"); breatheOutText = GameObject.Find("BreatheOutText"); note1 = GameObject.Find("Note1"); note2 = GameObject.Find("Note2"); note3 = GameObject.Find("Note3"); note4 = GameObject.Find("Note4"); note5 = GameObject.Find("Note5"); note6 = GameObject.Find("Note6"); note7 = GameObject.Find("Note7"); note8 = GameObject.Find("Note8"); breatheInText.SetActive(false); breatheOutText.SetActive(false); note1.SetActive(false); note2.SetActive(false); note3.SetActive(false); note4.SetActive(false); note5.SetActive(false); note6.SetActive(false); note7.SetActive(false); note8.SetActive(false); theSong = GameObject.Find("Hey Jude Audio").GetComponent <AudioSource>(); }