private void Awake() { SetTime(0); currentSong = FindObjectOfType <AudioManager>().currentSong; currentSong.instrumentIndex = 0; songNameShadow = transform.GetChild(1).GetComponent <Text>(); songName = transform.GetChild(2).GetComponent <Text>(); audioSources = GetComponents <AudioSource>(); instrumentImagePanel = transform.GetChild(0); keys = new List <GameObject>(); keySpawner = FindObjectOfType <KeySpawnManager>(); instrumentImages = GetComponentInChildren <InstrumentImages>(); }
private void Awake() { audioSource = GetComponent <AudioSource>(); currentSong = FindObjectOfType <AudioManager>().currentSong; }