def cleanup(self):
     if self.glowTrack:
         self.glowTrack.finish()
     self.glowTrack = None
     if self.glow:
         self.glow.removeNode()
     self.glow = None
     BaseAttack.cleanup(self)
    def cleanup(self):
        if hasattr(self, 'eyeSfx') and self.eyeSfx:
            base.audio3d.detachSound(self.eyeSfx)
            del self.eyeSfx

        if hasattr(self, 'eyeRoot') and self.eyeRoot:
            self.eyeRoot.removeNode()
            del self.eyeRoot

        BaseAttack.cleanup(self)
Beispiel #3
0
    def cleanup(self):
        if hasattr(self, 'sprayOnlySfx') and self.sprayOnlySfx:
            base.audio3d.detachSound(self.sprayOnlySfx)
            del self.sprayOnlySfx

        if hasattr(self, 'coolerAppearSfx') and self.coolerAppearSfx:
            base.audio3d.detachSound(self.coolerAppearSfx)
            del self.coolerAppearSfx

        if hasattr(self, 'sprayMdl'):
            if self.sprayMdl:
                self.sprayMdl.removeNode()
            del self.sprayMdl

        if hasattr(self, 'splash') and self.splash:
            self.splash.cleanup()
            del self.splash

        BaseAttack.cleanup(self)
Beispiel #4
0
 def cleanup(self):
     base.audio3d.detachSound(self.pickSound)
     del self.pickSound
     BaseAttack.cleanup(self)
Beispiel #5
0
 def cleanup(self):
     if hasattr(self, 'pickSound') and self.pickSound:
         base.audio3d.detachSound(self.pickSound)
     del self.pickSound
     BaseAttack.cleanup(self)