public void Dispose() { soundPlayer.Stop(); sound.Dispose(); textSprite.Dispose(); playButton.Dispose(); stopButton.Dispose(); volumeSlider.Dispose(); }
/// Terminate public static void Term() { bgmPlayer.Stop(); bgm.Dispose(); playButton.Dispose(); stopButton.Dispose(); pauseButton.Dispose(); resumeButton.Dispose(); volumeSlider.Dispose(); SampleDraw.Term(); graphics.Dispose(); }
/// terminate public static void Term() { button0.Dispose(); button1.Dispose(); button2.Dispose(); button3.Dispose(); slider.Dispose(); inputTextButton.Dispose(); if (dialog != null) { dialog.Dispose(); dialog = null; } SampleDraw.Term(); graphics.Dispose(); }