Game/Source/MenuPause.cpp
// Called before quitting, frees memory and controls active and inactive modules
Called before quitting, frees memory and controls active and inactive modules
Called before quitting frees memory and controls active and inactive modules
bool MenuPause::Unload()
{
	if (!active)
	{
		return false;
	}
	LOG("Unloading Pause Menu");
	tex->UnLoad(GUITexture);
	delete buttonResume;
	buttonResume = nullptr;
	delete buttonSettings;
	buttonSettings = nullptr;
	delete buttonTitle;
	buttonTitle = nullptr;
	delete buttonExit;
	buttonExit = nullptr;
	active = false;
	return false;
}
bool MenuPause :: Unload ( ) { if ( ! active ) { return false ; } LOG ( " " ) ; tex -> UnLoad ( GUITexture ) ; delete buttonResume ; buttonResume = nullptr ; delete buttonSettings ; buttonSettings = nullptr ; delete buttonTitle ; buttonTitle = nullptr ; delete buttonExit ; buttonExit = nullptr ; active = false ; return false ; }
Called before quitting, frees memory and controls active and inactive modules
Called before quitting frees memory and controls active and inactive modules