Created
April 19, 2012 05:43
-
-
Save AngryAnt/2418902 to your computer and use it in GitHub Desktop.
Parameterized subtree execution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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