Update getting-started.md
Fix wrong status returned in the InRange example.
This commit is contained in:
parent
5979166c1e
commit
76b3098ce7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue