public override void Dispose() { if (!IsDisposed) { m_blacksmith.Dispose(); m_blacksmith = null; m_blacksmithIcon.Dispose(); m_blacksmithIcon = null; m_blacksmithNewIcon.Dispose(); m_blacksmithNewIcon = null; m_blacksmithBoard.Dispose(); m_blacksmithBoard = null; m_enchantress.Dispose(); m_enchantress = null; m_enchantressIcon.Dispose(); m_enchantressIcon = null; m_enchantressNewIcon.Dispose(); m_enchantressNewIcon = null; m_tent.Dispose(); m_tent = null; m_architect.Dispose(); m_architect = null; m_architectIcon.Dispose(); m_architectIcon = null; m_screw.Dispose(); m_screw = null; if (m_blacksmithAnvilSound != null) { m_blacksmithAnvilSound.Dispose(); } m_blacksmithAnvilSound = null; m_tree1 = null; m_tree2 = null; m_tree3 = null; m_fern1 = null; m_fern2 = null; m_fern3 = null; foreach (var current in m_rainFG) { current.Dispose(); } m_rainFG.Clear(); m_rainFG = null; m_mountain1 = null; m_mountain2 = null; m_tollCollector.Dispose(); m_tollCollector = null; m_tollCollectorIcon.Dispose(); m_tollCollectorIcon = null; m_blacksmithBlock = null; m_enchantressBlock = null; m_architectBlock = null; if (m_rainSFX != null) { m_rainSFX.Dispose(); } m_rainSFX = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { Console.WriteLine("Disposing Game Over Boss Screen"); m_lastBoss = null; m_dialoguePlate.Dispose(); m_dialoguePlate = null; m_continueText.Dispose(); m_continueText = null; m_playerGhost.Dispose(); m_playerGhost = null; m_spotlight.Dispose(); m_spotlight = null; m_bossFallSound.Dispose(); m_bossFallSound = null; m_bossKneesSound.Dispose(); m_bossKneesSound = null; m_playerFrame.Dispose(); m_playerFrame = null; m_king.Dispose(); m_king = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { m_closeSound.Dispose(); m_closeSound = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { m_walkSound.Dispose(); m_walkSound = null; m_walkSound2.Dispose(); m_walkSound2 = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { if (m_gallopSound != null) { m_gallopSound.Dispose(); } m_gallopSound = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { m_pupil.Dispose(); m_pupil = null; m_squishSound.Dispose(); m_squishSound = null; if (m_deathLoop != null && !m_deathLoop.IsDisposed) { m_deathLoop.Dispose(); } m_deathLoop = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { m_chain.Dispose(); m_chain = null; BallAndChain.Dispose(); BallAndChain = null; BallAndChain2.Dispose(); BallAndChain2 = null; m_chainLinksList.Clear(); m_chainLinksList = null; m_chainLinks2List.Clear(); m_chainLinks2List = null; m_walkSound.Dispose(); m_walkSound = null; m_walkSound2.Dispose(); m_walkSound2 = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { Console.WriteLine("Disposing Game Over Screen"); m_player = null; m_dialoguePlate.Dispose(); m_dialoguePlate = null; m_continueText.Dispose(); m_continueText = null; m_playerGhost.Dispose(); m_playerGhost = null; m_spotlight.Dispose(); m_spotlight = null; m_playerFallSound.Dispose(); m_playerFallSound = null; m_playerSwordFallSound.Dispose(); m_playerSwordFallSound = null; m_playerSwordSpinSound.Dispose(); m_playerSwordSpinSound = null; m_objKilledPlayer = null; if (m_enemyList != null) { m_enemyList.Clear(); } m_enemyList = null; if (m_enemyStoredPositions != null) { m_enemyStoredPositions.Clear(); } m_enemyStoredPositions = null; m_playerFrame.Dispose(); m_playerFrame = null; base.Dispose(); } }