Exemple #1
0
    private async void SongPlayerLoad(string name)
    {
        SongPlayer player = SongPlayer.instance;

        if (name != _loadedSongName)
        {
            _loading           = true;
            findingOutput.text = "Loading beatmap...";
            await Task.Run(() => player.LoadBeatmap(name));

            _loadedSongName = name;

            _loading = false;
            tracklistChanged.Invoke();
        }

        findingOutput.text = "[" + name + "] " + player.loadedBeatmap.numTracks + " non-empty tracks";

        UpdatePanels();
    }