mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 04:02:40 -06:00
Treasure Chest is now destroyed properly
This commit is contained in:
parent
afdd660152
commit
3e61bc9501
1 changed files with 3 additions and 2 deletions
|
@ -12,15 +12,16 @@ class DistributedTreasureChest(DistributedObject.DistributedObject):
|
|||
self.createModel(45, -165.75, 0.025, 30)
|
||||
self.initCollisions()
|
||||
|
||||
def destroy(self):
|
||||
def delete(self):
|
||||
self.ignore('enter' + self.cSphereNode.getName())
|
||||
self.cSphereNodePath.removeNode()
|
||||
self.model.destroy()
|
||||
self.model.removeNode()
|
||||
self.destroyFishGui()
|
||||
del self.cSphere
|
||||
del self.cSphereNode
|
||||
del self.cSphereNodePath
|
||||
del self.model
|
||||
DistributedObject.DistributedObject.delete(self)
|
||||
|
||||
def destroyFishGui(self):
|
||||
self.ignore('treasureChestSell')
|
||||
|
|
Loading…
Reference in a new issue