Update getting-started.md

Fix wrong status returned in the InRange example.
This commit is contained in:
Serhii Snitsaruk 2023-12-01 18:24:48 +01:00 committed by GitHub
parent 5979166c1e
commit 76b3098ce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ func _setup() -> void:
# Called when task is executed. # Called when task is executed.
func _tick(_delta: float) -> int: func _tick(_delta: float) -> Status:
var target: Node2D = blackboard.get_var(target_var, null) var target: Node2D = blackboard.get_var(target_var, null)
if not is_instance_valid(target): if not is_instance_valid(target):
return FAILURE return FAILURE