关于行为树插件Behavior Designer的学习(三)_Conditionals条件任务

来源:互联网 发布:美工和平面设计的区别 编辑:程序博客网 时间:2024/06/05 13:06

关于行为树插件Behavior Designer的学习(三)_Conditionals条件任务<20/10/2017>

     

     Conditionals条件任务是用于测试游戏的一些属性。例如,判断能否看见敌人或者判断主角是否活着。

      行为树设计师插件包含了以下的默认条件任务:

名称图标描述参数

1,Random Probability

        随机概率:根据随机值返回成功或者失败

successProbability
The chance that the task will return success.

seed
Seed the random number generator to make things easier to debug.

useSeed
Do we want to use the seed?

2,Compare Field Value比较字段值:比较指定的字段值,相等的时候返回成功

targetGameObject
The GameObject to setthe field on

componentName
The component to set the field on

fieldName
The name of the field

compareValue
The value to compare to

3,Compare Property Value比较属性值:比较指定的属性值,相等的时候返回成功

targetGameObject
The GameObject to setthe property of

componentName
The component to set the property of

propertyName
The name of the property

compareValue
The value to compare to

4,Has Received Event                                                      接收事件:当接收到指定名称的事件后返回成功eventName
The name of the event to receive
5,PhysicsHas Entered Collision
Has Entered Collision2D
Has Entered Trigger
Has Entered Trigger2D
Has Exited Collision
Has Exited Collision2D
Has Exited Trigger
Has Exited Trigger2D包含了一些物理条件判断
阅读全文
0 0