/// <summary> /// Cleans up the objects created by the U.I /// </summary> public void CleanUp() { engCoreRef.RemoveDrawItem("Start_Game_Button", "sprite"); engCoreRef.RemoveDrawItem("Exit_Game_Button", "sprite"); engCoreRef.RemoveDrawItem("Start_Game_Button_Text", "text"); engCoreRef.RemoveDrawItem("Exit_Game_Button_Text", "text"); MediaPlayer.Stop(); state.song = null; }
/// <summary> /// Destroys all objects created during the execution of this state /// </summary> void IGame_State_Base.CleanUp() { //Clear the video from the draw stack engCoreRef.RemoveDrawItem("Splash_Video", "video"); //Stop the video player from running player.Stop(); //Unload all loaded content engCoreRef.Content.Unload(); }