IBEHAVIORINSTANCE 脚本接口

60次阅读
没有评论

共计 356 个字符,预计需要花费 1 分钟才能阅读完成。

IBehaviorInstance 脚本接口

IBehaviorInstance API

  • addEventListener(type, func, capture): 为插件的脚本接口触发的特定类型事件添加事件处理程序。
  • removeEventListener(type, func, capture): 为插件的脚本接口触发的特定类型事件删除事件处理程序。
  • dispatchEvent(e): 调度事件,触发已为事件类型添加的任何处理程序函数。
  • instance: 对表示此行为实例所影响的对象实例的 IInstance 的引用。
  • behavior: 对表示行为类型的 IBehavior 的引用,例如 Solid 或 Physics。
  • behaviorType: 对行为实例所属的 IBehaviorType 的引用。
  • runtime: 对 IRuntime 接口的引用。
正文完
 0
评论(没有评论)