Ejemplo n.º 1
0
    // When clicked in the menu, a song will "select" itself
    // Register itself with the menu, set its outline to show selection, start playing the song
    public void Select()
    {
        if (_songList.SelectedSong != null)
        {
            _songList.SelectedSong.GetComponent <SongListItem>().Deselect();
        }
        _songList.SelectSong(this.gameObject);

        GetComponent <Outline>().enabled = true;
    }