MyTreeBuilder.Condition Method

Fight Game AI Demo

MyTreeBuilderCondition Method
Like an action node... but the function can return true/false and is mapped to success/failure.

Namespace: FightGameAIDemo.Behavior_Tree
Assembly: FightGameAIDemo (in FightGameAIDemo.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public MyTreeBuilder Condition(
	string name,
	Func<MyTimeData, bool> fn
)

Parameters

name
Type: SystemString
The name.
fn
Type: SystemFuncMyTimeData, Boolean
The function.

Return Value

Type: MyTreeBuilder
MyTreeBuilder
See Also