當前位置: 首頁>>代碼示例>>Python>>正文


Python StateData.unload方法代碼示例

本文整理匯總了Python中direct.fsm.StateData.StateData.unload方法的典型用法代碼示例。如果您正苦於以下問題:Python StateData.unload方法的具體用法?Python StateData.unload怎麽用?Python StateData.unload使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在direct.fsm.StateData.StateData的用法示例。


在下文中一共展示了StateData.unload方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: unload

# 需要導入模塊: from direct.fsm.StateData import StateData [as 別名]
# 或者: from direct.fsm.StateData.StateData import unload [as 別名]
 def unload(self):
     self.book_texture.removeNode()
     del self.book_texture
     self.book_contents.removeNode()
     del self.book_contents
     loader.unloadSfx(self.book_open)
     del self.book_open
     loader.unloadSfx(self.book_close)
     del self.book_close
     loader.unloadSfx(self.book_turn)
     del self.book_turn
     del self.fsm
     del self.parentFSM
     del self.entered
     StateData.unload(self)
開發者ID:coginvasion,項目名稱:src,代碼行數:17,代碼來源:ShtickerBook.py

示例2: unload

# 需要導入模塊: from direct.fsm.StateData import StateData [as 別名]
# 或者: from direct.fsm.StateData.StateData import unload [as 別名]
 def unload(self):
     self.notify.info('unload()')
     if hasattr(self, 'loader'):
         self.loader.exit()
         self.loader.unload()
         del self.loader
     del self.parentFSM
     del self.fsm
     self.dnaStore.resetAll()
     del self.dnaStore
     self.deleteCurrentSky()
     self.stopSuitEffect(0)
     self.ignoreAll()
     ModelPool.garbageCollect()
     TexturePool.garbageCollect()
     StateData.unload(self)
開發者ID:coginvasion,項目名稱:src,代碼行數:18,代碼來源:Hood.py

示例3: unload

# 需要導入模塊: from direct.fsm.StateData import StateData [as 別名]
# 或者: from direct.fsm.StateData.StateData import unload [as 別名]
 def unload(self):
     StateData.unload(self)
     self.parentFSMState.removeChild(self.fsm)
     del self.parentFSMState
     self.geom.removeNode()
     del self.geom
     del self.fsm
     del self.hood
     del self.playground
     del self.music
     del self.interiorMusic
     del self.battleMusic
     del self.bossBattleMusic
     del self.tournamentMusic
     self.ignoreAll()
     ModelPool.garbageCollect()
     TexturePool.garbageCollect()
開發者ID:coginvasion,項目名稱:src,代碼行數:19,代碼來源:SafeZoneLoader.py

示例4: unload

# 需要導入模塊: from direct.fsm.StateData import StateData [as 別名]
# 或者: from direct.fsm.StateData.StateData import unload [as 別名]
 def unload(self):
     self.parentFSMState.removeChild(self.fsm)
     del self.parentFSMState
     del self.fsm
     del self.streetClass
     self.landmarkBlocks.removeNode()
     del self.landmarkBlocks
     self.hood.dnaStore.resetSuitPoints()
     self.hood.dnaStore.resetBattleCells()
     del self.hood
     del self.nodeDict
     del self.zoneDict
     del self.fadeInDict
     del self.fadeOutDict
     del self.nodeList
     self.geom.removeNode()
     del self.geom
     del self.music
     del self.interiorMusic
     ModelPool.garbageCollect()
     TexturePool.garbageCollect()
     StateData.unload(self)
開發者ID:coginvasion,項目名稱:src,代碼行數:24,代碼來源:TownLoader.py

示例5: unload

# 需要導入模塊: from direct.fsm.StateData import StateData [as 別名]
# 或者: from direct.fsm.StateData.StateData import unload [as 別名]
 def unload(self):
     self.cleanup()
     StateData.unload(self)
開發者ID:coginvasion,項目名稱:src,代碼行數:5,代碼來源:SuitAttacks.py

示例6: unload

# 需要導入模塊: from direct.fsm.StateData import StateData [as 別名]
# 或者: from direct.fsm.StateData.StateData import unload [as 別名]
 def unload(self):
     StateData.unload(self)
開發者ID:coginvasion,項目名稱:src,代碼行數:4,代碼來源:OptionPage.py

示例7: unload

# 需要導入模塊: from direct.fsm.StateData import StateData [as 別名]
# 或者: from direct.fsm.StateData.StateData import unload [as 別名]
 def unload(self):
     del self.book
     del self.parentFSM
     del self.fsm
     StateData.unload(self)
開發者ID:coginvasion,項目名稱:src,代碼行數:7,代碼來源:AdminPage.py

示例8: unload

# 需要導入模塊: from direct.fsm.StateData import StateData [as 別名]
# 或者: from direct.fsm.StateData.StateData import unload [as 別名]
 def unload(self):
     StateData.unload(self)
     del self.walkDoneEvent
     self.walkStateData.unload()
     del self.walkStateData
     del self.loader
開發者ID:coginvasion,項目名稱:src,代碼行數:8,代碼來源:Place.py

示例9: unload

# 需要導入模塊: from direct.fsm.StateData import StateData [as 別名]
# 或者: from direct.fsm.StateData.StateData import unload [as 別名]
 def unload(self):
     StateData.unload(self)
     del self.fsm
開發者ID:coginvasion,項目名稱:src,代碼行數:5,代碼來源:QuietZoneState.py


注:本文中的direct.fsm.StateData.StateData.unload方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。