示例#1
0
    public void OnAddSong()
    {
        song.Title  = title.text;
        song.Artist = artist.text;
        song.Lyrics = lyrics.text.Split('\n');
        song.id     = Guid.NewGuid().ToString();
        songManager.AddSong(song);

        title.text  = "";
        artist.text = "";
        lyrics.text = "";

        StartCoroutine(DisplaySuccessText());
    }