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