SunsetHigh.BGMusic.dispose C# (CSharp) Method

dispose() public static method

Disposes of all resources contained in BGMusic. Call this method at the end of the Game's life.
public static dispose ( ) : void
return void
        public static void dispose()
        {
            if (file != null)
            {
                file.Dispose();
                file = null;
            }
            if (wavePlayer != null)
            {
                wavePlayer.Dispose();
                wavePlayer = null;
            }
            fadeInOut = null;
        }