本文整理汇总了Python中FMOD.enableLightSound方法的典型用法代码示例。如果您正苦于以下问题:Python FMOD.enableLightSound方法的具体用法?Python FMOD.enableLightSound怎么用?Python FMOD.enableLightSound使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FMOD
的用法示例。
在下文中一共展示了FMOD.enableLightSound方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: stopAmbient
# 需要导入模块: import FMOD [as 别名]
# 或者: from FMOD import enableLightSound [as 别名]
def stopAmbient(self):
ambientEvent = self.__musicEvents[MusicController._AMBIENT_EVENT]
if ambientEvent is not None:
ambientEvent.destroy()
if FMOD.enabled:
FMOD.enableLightSound(0)
return
示例2: onLeaveArena
# 需要导入模块: import FMOD [as 别名]
# 或者: from FMOD import enableLightSound [as 别名]
def onLeaveArena(self):
self.__isOnArena = False
BigWorld.player().arena.onPeriodChange -= self.__onArenaStateChanged
if FMOD.enabled:
FMOD.enableLightSound(0)
示例3: onEnterArena
# 需要导入模块: import FMOD [as 别名]
# 或者: from FMOD import enableLightSound [as 别名]
def onEnterArena(self):
BigWorld.player().arena.onPeriodChange += self.__onArenaStateChanged
self.__isOnArena = True
self.__onArenaStateChanged()
if FMOD.enabled:
FMOD.enableLightSound(1)
示例4: stopAmbient
# 需要导入模块: import FMOD [as 别名]
# 或者: from FMOD import enableLightSound [as 别名]
def stopAmbient(self):
if self.__sndEventAmbient is not None:
self.__sndEventAmbient.stop(True)
self.__sndEventAmbient = None
self.__eventAmbientId = None
FMOD.enableLightSound(0)
示例5: onLeaveArena
# 需要导入模块: import FMOD [as 别名]
# 或者: from FMOD import enableLightSound [as 别名]
def onLeaveArena(self):
self._MusicController__isOnArena = False
BigWorld.player().arena.onPeriodChange -= self._MusicController__onArenaStateChanged
FMOD.enableLightSound(0)
示例6: onEnterArena
# 需要导入模块: import FMOD [as 别名]
# 或者: from FMOD import enableLightSound [as 别名]
def onEnterArena(self):
BigWorld.player().arena.onPeriodChange += self._MusicController__onArenaStateChanged
self._MusicController__isOnArena = True
self._MusicController__onArenaStateChanged()
FMOD.enableLightSound(1)