示例#1
0
        protected override void OnClick(EventArgs e)
        {
            Audio.PlaySound("sfx_back", false);
            MainForm.instance.Controls.Clear();
            MainForm.instance.InitStartMenu();

            if (stopAudio)
            {
                Audio.Stop();
            }
        }
示例#2
0
 private void Play(bool loop)
 {
     Audio.Stop();
     if (lastClicked == TreeViewType.Bgm)
     {
         Audio.PlaySound(bgm.SelectedNode.Text, loop);
     }
     else
     {
         Audio.PlaySound(sfx.SelectedNode.Text, loop);
     }
 }