Game/Source/SceneTitle.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 SceneTitle::Unload()
{
	if (!active)
	{
		return false;
	}
	LOG("Unloading Title Sreen");
	audioManager->StopMusic();
	tex->UnLoad(GUITexture);
	entityManager->DestroyEntity(map);
	delete buttonPlay;
	buttonPlay = nullptr;
	delete buttonContinue;
	buttonContinue = nullptr;
	delete buttonSettings;
	buttonSettings = nullptr;
	delete buttonCredits;
	buttonCredits = nullptr;
	delete buttonExit;
	buttonExit = nullptr;
	active = false;
	return false;
}
bool SceneTitle :: Unload ( ) { if ( ! active ) { return false ; } LOG ( " " ) ; audioManager -> StopMusic ( ) ; tex -> UnLoad ( GUITexture ) ; entityManager -> DestroyEntity ( map ) ; delete buttonPlay ; buttonPlay = nullptr ; delete buttonContinue ; buttonContinue = nullptr ; delete buttonSettings ; buttonSettings = nullptr ; delete buttonCredits ; buttonCredits = 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