def destroy(self): self.flashlightNP.remove() self.flashlightNP = None self.flashlight = None self.disableInput() self.disable() self.specialDirectObject.ignoreAll() del self.flashlightNP del self.flashlight del self.specialDirectObject kinematicCharacterController.destroy(self)
def destroy(self): self.flashlightNP.remove() self.flashlightNP = None self.flashlight = None self.disableInput() self.disable() self.triggerInput.ignoreAll() del self.flashlightNP del self.flashlight del self.triggerInput kinematicCharacterController.destroy(self)