当前位置: 首页>>代码示例>>Python>>正文


Python DistributedMinigame.disable方法代码示例

本文整理汇总了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
开发者ID:coginvasion,项目名称:src,代码行数:34,代码来源:DistributedEagleGame.py

示例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
开发者ID:coginvasion,项目名称:src,代码行数:12,代码来源:DistributedToonFPSGame.py

示例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
开发者ID:coginvasion,项目名称:src,代码行数:18,代码来源:DistributedCameraShyGame.py


注:本文中的DistributedMinigame.DistributedMinigame.disable方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。