diff --git a/README.md b/README.md index 495e460..3bec51c 100644 --- a/README.md +++ b/README.md @@ -55,13 +55,15 @@ local NewNode = BehaviorTree5.Task({ if object.i == 5 then return SUCCESS elseif object.i > 5 then - return FAIL - end - - print("The task is still running...") - return RUNNING + return FAIL' + else + print("The task is still running...") + return RUNNING + end end, + + finish = function(object, status, ...) object.i = nil print("I'm done with the task! My outcome was: ")