当前位置:   article > 正文

行为树笔记--------------Event(事件)_send event与has received event

send event与has received event

1.通过创建任务节点:
send event 发送事件
has received event 接收事件

2.通过代码
var behaviorTree = GetComponent< BehaviorTree >();
behaviorTree.SendEvent< object >(“Event”, Vector3.zero);

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/95381?site
推荐阅读