private void AddMusic(string filePath) { //curPlaylist가 있으면, 거기에 Add //없으면, 새로운 Playlist를 만들어줌 Debug.Log(filePath); if (isPlaylistOn) { if (UIManager.Instance.curDataType == DataType.MUSIC) { UIManager.Instance.AddMusicInSelectedPlaylist(filePath); return; } } if (CurPlaylist != null) { CurPlaylist.AddMusic(filePath); } else { Playlist playlist = Playlist.Init_Playlist(); CurPlaylist = playlist; CurPlaylist.AddMusic(filePath); } }
public void AddMusicInSelectedPlaylist(string filePath) { selectedPlaylist.AddMusic(filePath); LoadButtons(DataType.MUSIC); }