Behavior Designer文档-20(默认条件任务)

      

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

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

名称 图标 描述 参数

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,Physics Has Entered Collision
Has Entered Collision2D
Has Entered Trigger
Has Entered Trigger2D
Has Exited Collision
Has Exited Collision2D
Has Exited Trigger
Has Exited Trigger2D
包含了一些物理条件判断


你可能感兴趣的:(Behavior Designer文档-20(默认条件任务))