本文整理匯總了Python中interfaces.NPCObject.NPCObject.onStateChanged_方法的典型用法代碼示例。如果您正苦於以下問題:Python NPCObject.onStateChanged_方法的具體用法?Python NPCObject.onStateChanged_怎麽用?Python NPCObject.onStateChanged_使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類interfaces.NPCObject.NPCObject
的用法示例。
在下文中一共展示了NPCObject.onStateChanged_方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: onStateChanged_
# 需要導入模塊: from interfaces.NPCObject import NPCObject [as 別名]
# 或者: from interfaces.NPCObject.NPCObject import onStateChanged_ [as 別名]
def onStateChanged_(self, oldstate, newstate):
"""
virtual method.
entity狀態改變了
"""
State.onStateChanged_(self, oldstate, newstate)
AI.onStateChanged_(self, oldstate, newstate)
NPCObject.onStateChanged_(self, oldstate, newstate)