void Awake() { _albumArt = AlbumArtObject.GetComponent <Image>(); _songName = SongNameObject.GetComponent <Text>(); _artistName = ArtistNameObject.GetComponent <Text>(); _songDuration = SongDurationObject.GetComponent <Text>(); _songList = GameObject.FindGameObjectWithTag("SongList").GetComponent <SongListMenu>(); }
void Awake() { if (instance == null) { DontDestroyOnLoad(gameObject); instance = this; } else if (instance != this) { Destroy(gameObject); } }