C# Class lab.ANode

Inheritance: UnityEngine.ScriptableObject
Show file Open project: marekdaniluk/lab Class Usage Examples

Public Properties

Property Type Description
OnDebugResult DebugNodeHandler

Public Methods

Method Description
DebugRun ( AiBlackboard parameters, IList trees, int level, int nodeIndex ) : bool

Runs debug this node.

Run ( AiBlackboard parameters, IList trees, List tasks ) : bool

Runs this node.

Method Details

DebugRun() public abstract method

Runs debug this node.
public abstract DebugRun ( AiBlackboard parameters, IList trees, int level, int nodeIndex ) : bool
parameters AiBlackboard AiBlackboard with global parameters.
trees IList Readonly list with all ai trees.
level int Level of how deep we are in this AiTree.
nodeIndex int Index of current node in parent's node. If this is root, nodeIndex is 0.
return bool

Run() public abstract method

Runs this node.
public abstract Run ( AiBlackboard parameters, IList trees, List tasks ) : bool
parameters AiBlackboard AiBlackboard with global parameters.
trees IList Readonly list with all ai trees.
tasks List List of task scripts to bind with task nodes.
return bool

Property Details

OnDebugResult public property

public DebugNodeHandler OnDebugResult
return DebugNodeHandler