void TowerFlyweight::Unload() { // Unload sounds SGD::AudioManager* pAudio = SGD::AudioManager::GetInstance(); pAudio->UnloadAudio(m_hSellSound); pAudio->UnloadAudio(m_hInvalidSound); pAudio->UnloadAudio(m_hMachineGunShotSound); pAudio->UnloadAudio(m_hMapleSyrupShotSound); pAudio->UnloadAudio(m_hHockeyStickSlashSound); }
// Exit /*virtual*/ void IntroState::Exit(void) { SGD::GraphicsManager* pGraphics = SGD::GraphicsManager::GetInstance(); SGD::AudioManager * pAudio = SGD::AudioManager::GetInstance(); // Unload assets pGraphics->UnloadTexture(m_hBackgroundImage); //pAudio->UnloadAudio(m_hBackgroundMusic); pAudio->UnloadAudio(m_hEmergency); }
// Exit /*virtual*/ void IntroState::Exit(void) { SGD::GraphicsManager* pGraphics = SGD::GraphicsManager::GetInstance(); SGD::AudioManager * pAudio = SGD::AudioManager::GetInstance(); // Unload assets pGraphics->UnloadTexture(m_hBackgroundImage); pGraphics->UnloadTexture(m_hinstruct); //pAudio->UnloadAudio(m_hBackgroundMusic); pAudio->UnloadAudio(m_hEmergency); pAudio->SetVoiceVolume(Game::GetInstance()->m_hMainVoice, 100); }