protected override void OnClick(EventArgs e) { Audio.PlaySound("sfx_back", false); MainForm.instance.Controls.Clear(); MainForm.instance.InitStartMenu(); if (stopAudio) { Audio.Stop(); } }
private void Play(bool loop) { Audio.Stop(); if (lastClicked == TreeViewType.Bgm) { Audio.PlaySound(bgm.SelectedNode.Text, loop); } else { Audio.PlaySound(sfx.SelectedNode.Text, loop); } }