Skip to content

Commit 44b1afa

Browse files
author
NetGnome
committed
typo fix
1 parent 2953ddb commit 44b1afa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ Example of a simple A* following AI on a tilemap
3737
ParallelSelector ifNotReachedTargetMoveTowardsCell = new ParallelSelector(reachedTarget, moveToCell);
3838
3939
//follow target so long as you're not too close and then animate
40-
ParallelSequence pSeqB = new ParallelSequence(new Inverter(tooClose), updatePosition, ifMovedCreateNewPath, ifPathFoundGetPath, ifPathIsNewUseIt, ifReachedCellGetNext, ifNotReachedTargetMoveTowardsCell, animate);
40+
ParallelSequence follow = new ParallelSequence(new Inverter(tooClose), updatePosition, ifMovedCreateNewPath, ifPathFoundGetPath, ifPathIsNewUseIt, ifReachedCellGetNext, ifNotReachedTargetMoveTowardsCell, animate);
4141

4242
//setup root node, choose initialization phase or pathing/movement phase
43-
root = new RootSelector(switchBehaviors, initialize, pSeqB);
43+
root = new RootSelector(switchBehaviors, initialize, follow);
4444

4545
//set a reference to the root
4646
Behavior behavior = new Behavior(root);

0 commit comments

Comments
 (0)