예제 #1
0
 def delete(self):
     self.cleanup()
     self.holidayId = None
     self.holidayName = None
     GridChild.delete(self)
     DistributedObject.DistributedObject.delete(self)
     return
예제 #2
0
    def delete(self):
        taskMgr.remove(self.uniqueName('SendShotDown'))
        if not self.destroyed:
            if isinstance(base.cr.activeWorld,
                          DistributedDefendWorld.DistributedDefendWorld
                          ) and self in base.cr.activeWorld.flamingBarrels:
                base.cr.activeWorld.flamingBarrels.remove(self)

            self.destroyed = True
            if self.barrelModel is not None:
                self.barrelModel.removeNode()
                base.cTrav.removeCollider(self.collNode)
                self.collNode.removeNode()
                self.projectileInterval.pause()
                self.projectileInterval.clearToInitial()

        if self.smokeVfx:
            self.smokeVfx.cleanUpEffect()
            self.smokeVfx = None

        if self.trailEffect:
            self.trailEffect.stopLoop()
            self.trailEffect = None

        GridChild.delete(self)
        DistributedObject.delete(self)
예제 #3
0
 def delete(self):
     DistributedNode.delete(self)
     GridChild.delete(self)
예제 #4
0
 def delete(self):
     DistributedNode.delete(self)
     InteractiveBase.delete(self)
     DistributedLocatableObject.delete(self)
     GridChild.delete(self)