// Use this for initialization void Start() { songChooser = GameObject.Find("Logic").GetComponent <learnerLogic>(); songLearner = GameObject.Find("Logic").GetComponent <songLearn>(); songOPtionAnimator = GameObject.Find("SongPanel").GetComponent <Animator>(); songPanel = GameObject.Find("SongPanel"); programPanel = GameObject.Find("ProgramPanel"); piano = GameObject.Find("Piano"); songPanel.SetActive(false); originalPianoPos = piano.transform.position; piano.transform.position = new Vector3(-999999, originalPianoPos.y, originalPianoPos.z); }
// Use this for initialization void Start() { songChooser = GameObject.Find("Logic").GetComponent<learnerLogic>(); songLearner = GameObject.Find("Logic").GetComponent<songLearn>(); songOPtionAnimator = GameObject.Find("SongPanel").GetComponent<Animator>(); songPanel = GameObject.Find("SongPanel"); programPanel = GameObject.Find("ProgramPanel"); piano = GameObject.Find("Piano"); songPanel.SetActive(false); originalPianoPos = piano.transform.position; piano.transform.position = new Vector3(-999999, originalPianoPos.y, originalPianoPos.z); }
// Use this for initialization void Start() { initilizeSongs (); songLearner = this.GetComponent<songLearn> (); songLearner.SetSong (songs["spider"]); }
// Use this for initialization void Start() { initilizeSongs(); songLearner = this.GetComponent <songLearn> (); songLearner.SetSong(songs["spider"]); }