Example #1
0
    public void PlaySong(string path, bool status)
    {
        m_currentPlaySongPath = path;

        m_audio.LoadMusic(path);

        if (m_musicPlay.isOn == status)
        {
            PlaySong(status);
        }
        else
        {
            m_musicPlay.isOn = status;
        }
    }