Example #1
0
    public void PlayPause()
    {
        SongPlayer player = SongPlayer.instance;

        if (player.isPaused || (!player.isPlaying))
        {
            player.ResumeSong();
        }
        else
        {
            player.PauseSong();
        }

        UpdatePlaybutton();
    }