本文整理汇总了Python中direct.actor.DistributedActor.DistributedActor.do_setParent方法的典型用法代码示例。如果您正苦于以下问题:Python DistributedActor.do_setParent方法的具体用法?Python DistributedActor.do_setParent怎么用?Python DistributedActor.do_setParent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类direct.actor.DistributedActor.DistributedActor
的用法示例。
在下文中一共展示了DistributedActor.do_setParent方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: do_setParent
# 需要导入模块: from direct.actor.DistributedActor import DistributedActor [as 别名]
# 或者: from direct.actor.DistributedActor.DistributedActor import do_setParent [as 别名]
def do_setParent(self, parentToken):
if not self.isDisabled():
if parentToken == OTPGlobals.SPHidden:
self.nametag2dDist &= ~Nametag.CName
else:
self.nametag2dDist |= Nametag.CName
self.nametag.getNametag2d().setContents(self.nametag2dContents & self.nametag2dDist)
DistributedActor.do_setParent(self, parentToken)
self.__setTags()
示例2: do_setParent
# 需要导入模块: from direct.actor.DistributedActor import DistributedActor [as 别名]
# 或者: from direct.actor.DistributedActor.DistributedActor import do_setParent [as 别名]
def do_setParent(self, parentToken):
if not self.isDisabled():
nametag2d = self.nametag.getNametag2d()
if parentToken == OTPGlobals.SPHidden:
nametag2d.hideNametag()
else:
nametag2d.showNametag()
nametag2d.update()
DistributedActor.do_setParent(self, parentToken)
self.__setTags()
示例3: do_setParent
# 需要导入模块: from direct.actor.DistributedActor import DistributedActor [as 别名]
# 或者: from direct.actor.DistributedActor.DistributedActor import do_setParent [as 别名]
def do_setParent(self, parentToken):
if not self.isDisabled():
DistributedActor.do_setParent(self, parentToken)