Run() public abstract méthode

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.
Résultat bool
Exemple #1
0
 /// <summary>
 /// Runs this node.
 /// </summary>
 /// <param name="parameters">AiBlackboard with global parameters.</param>
 /// <param name="trees">Readonly list with all ai trees.</param>
 /// <param name="tasks">List of task scripts to bind with task nodes.</param>
 /// <returns>Always returns true.</returns>
 public override bool Run(AiBlackboard parameters, IList <AiTree> trees, List <TaskBinder> tasks)
 {
     for (int i = 0; i < Repeat; ++i)
     {
         _node.Run(parameters, trees, tasks);
     }
     return(true);
 }
Exemple #2
0
 /// <summary>
 /// Runs this node.
 /// </summary>
 /// <param name="parameters">AiBlackboard with global parameters.</param>
 /// <param name="trees">Readonly list with all ai trees.</param>
 /// <param name="tasks">List of task scripts to bind with task nodes.</param>
 /// <returns>Always returns true.</returns>
 public override bool Run(AiBlackboard parameters, IList <AiTree> trees, List <TaskBinder> tasks)
 {
     _node.Run(parameters, trees, tasks);
     return(true);
 }