Skip to content

Instantly share code, notes, and snippets.

@AngryAnt
Created April 19, 2012 05:43
Show Gist options
  • Select an option

  • Save AngryAnt/2418902 to your computer and use it in GitHub Desktop.

Select an option

Save AngryAnt/2418902 to your computer and use it in GitHub Desktop.
Parameterized subtree execution
public BehaveResult StartPanicAction
{
get
{
panic = true;
return BehaveResult.Success;
}
}
public BehaveResult PatrolAction
{
get
{
return panic ? panicPatrolTree.Tick (this) : patrolTree.Tick (this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment