def unload(self): if hasattr(self, 'decorationsList') and self.decorationsList: for decor in self.decorationsList: decor.unload() del self.decorationsList self.stopPartyClock() self.grassRoot.removeNode() del self.grassRoot if hasattr(self, 'testGrid'): self.testGrid.removeNode() del self.testGrid self.ignoreAll() Toon.unloadMinigameAnims() self.partyHat.removeNode() del self.partyHat if hasattr(base, 'partyHasJukebox'): del base.partyHasJukebox
def unload(self): self.notify.debug('BASE: unload') if hasattr(base, 'curMinigame'): del base.curMinigame Toon.unloadMinigameAnims()