本文整理汇总了Python中DistributedMinigame.DistributedMinigame.disable方法的典型用法代码示例。如果您正苦于以下问题:Python DistributedMinigame.disable方法的具体用法?Python DistributedMinigame.disable怎么用?Python DistributedMinigame.disable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DistributedMinigame.DistributedMinigame
的用法示例。
在下文中一共展示了DistributedMinigame.disable方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: disable
# 需要导入模块: from DistributedMinigame import DistributedMinigame [as 别名]
# 或者: from DistributedMinigame.DistributedMinigame import disable [as 别名]
def disable(self):
for triggerName in self.triggers:
self.ignore('enter' + triggerName)
base.localAvatar.createChatInput()
camera.reparentTo(render)
camera.setPosHpr(0, 0, 0, 0, 0, 0)
render.clearFog()
self.triggers = None
self.toonOof = None
self.hitEagleSfx = None
self.hitObstacleSfx = None
self.cannonMoveSfx = None
self.fallSfx = None
if self.world:
self.world.removeNode()
self.world = None
self.worldModelPath = None
self.nodesToStash = None
self.fog = None
self.round = None
for platform in self.platforms:
platform.removeNode()
self.platforms = None
self.cannonId = None
self.cannonBarrel = None
self.platformPositions = None
base.setBackgroundColor(CIGlobals.DefaultBackgroundColor)
self.bgColor = None
DistributedMinigame.disable(self)
return
示例2: disable
# 需要导入模块: from DistributedMinigame import DistributedMinigame [as 别名]
# 或者: from DistributedMinigame.DistributedMinigame import disable [as 别名]
def disable(self):
self.myRemoteAvatar.cleanup()
self.myRemoteAvatar = None
for av in self.remoteAvatars:
av.cleanup()
del av
self.remoteAvatars = None
DistributedMinigame.disable(self)
return
示例3: disable
# 需要导入模块: from DistributedMinigame import DistributedMinigame [as 别名]
# 或者: from DistributedMinigame.DistributedMinigame import disable [as 别名]
def disable(self):
if self.thisPlayerWinsLbl:
self.thisPlayerWinsLbl.destroy()
self.thisPlayerWinsLbl = None
base.camera.reparentTo(render)
base.camera.setPos(0, 0, 0)
base.camera.setHpr(0, 0, 0)
if self.myRemoteAvatar:
self.myRemoteAvatar.cleanup()
del self.myRemoteAvatar
self.firstPerson.cleanup()
del self.firstPerson
self.deleteWorld()
base.camLens.setMinFov(CIGlobals.DefaultCameraFov / (4.0 / 3.0))
DistributedMinigame.disable(self)
return